[pygobject] test_gi: use correct min/max constants for gsize/gssize
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] test_gi: use correct min/max constants for gsize/gssize
- Date: Wed, 29 Mar 2017 11:05:06 +0000 (UTC)
commit 33a44c7653030da0a1de76ff8241e40e66d04701
Author: Christoph Reiter <creiter src gnome org>
Date: Mon Mar 27 15:53:13 2017 +0200
test_gi: use correct min/max constants for gsize/gssize
This made these tests on 64bit Windows fail because sizeof(gsize) != sizeof(glong)
https://bugzilla.gnome.org/show_bug.cgi?id=780591
tests/test_gi.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/test_gi.py b/tests/test_gi.py
index b18d835..0eaa0b7 100644
--- a/tests/test_gi.py
+++ b/tests/test_gi.py
@@ -517,8 +517,8 @@ class TestULong(unittest.TestCase):
class TestSSize(unittest.TestCase):
- MAX = GLib.MAXLONG
- MIN = GLib.MINLONG
+ MAX = GLib.MAXSSIZE
+ MIN = GLib.MINSSIZE
def test_ssize_return(self):
self.assertEqual(self.MAX, GIMarshallingTests.ssize_return_max())
@@ -550,7 +550,7 @@ class TestSSize(unittest.TestCase):
class TestSize(unittest.TestCase):
- MAX = GLib.MAXULONG
+ MAX = GLib.MAXSIZE
def test_size_return(self):
self.assertEqual(self.MAX, GIMarshallingTests.size_return())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]