[pygobject] Use constants instead of literals



commit d7d178206bfbb0858556fcfd6c9ca8eefda3fdf5
Author: Tomeu Vizoso <tomeu vizoso collabora co uk>
Date:   Wed Jun 8 09:47:20 2011 +0200

    Use constants instead of literals

 tests/test_overrides.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tests/test_overrides.py b/tests/test_overrides.py
index ed0b737..d6717df 100644
--- a/tests/test_overrides.py
+++ b/tests/test_overrides.py
@@ -730,8 +730,8 @@ class TestGtk(unittest.TestCase):
                                                 i % 2,
                                                 bool(i % 2),
                                                 i,
-                                                9223372036854775808,
-                                                -9223372036854775808,
+                                                GObject.G_MAXULONG,
+                                                GObject.G_MININT64,
                                                 0xffffffffffffffff,
                                                 254,
                                                 _bytes('a')
@@ -769,9 +769,9 @@ class TestGtk(unittest.TestCase):
            uint_ = tree_store.get_value(treeiter, 8)
            self.assertEquals(uint_, i)
            ulong_ = tree_store.get_value(treeiter, 9)
-           self.assertEquals(ulong_, 9223372036854775808)
+           self.assertEquals(ulong_, GObject.G_MAXULONG)
            int64_ = tree_store.get_value(treeiter, 10)
-           self.assertEquals(int64_, -9223372036854775808)
+           self.assertEquals(int64_, GObject.G_MININT64)
            uint64_ = tree_store.get_value(treeiter, 11)
            self.assertEquals(uint64_, 0xffffffffffffffff)
            uchar_ = tree_store.get_value(treeiter, 12)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]