diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-04-07 17:56:24 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-04-07 17:56:24 +0200 |
commit | 1f52c1ba5b48364c91d5eb99d1a5bb47b455b259 (patch) | |
tree | 2b8c1804c1f5263b824bea886867800a1eb735ea /tests/test_overrides_glib.py | |
parent | 83d792376fd2d1f4d8b251e104876c192758b3b2 (diff) | |
download | pygobject-1f52c1ba5b48364c91d5eb99d1a5bb47b455b259.tar.gz |
Move all py2/3 compat code into gi._compat
Diffstat (limited to 'tests/test_overrides_glib.py')
-rw-r--r-- | tests/test_overrides_glib.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_overrides_glib.py b/tests/test_overrides_glib.py index d0a2d64c..4fd8b1d6 100644 --- a/tests/test_overrides_glib.py +++ b/tests/test_overrides_glib.py @@ -8,7 +8,7 @@ import unittest import gi from gi.repository import GLib -from .compathelper import _long +from gi._compat import long_, integer_types class TestGVariant(unittest.TestCase): @@ -62,7 +62,7 @@ class TestGVariant(unittest.TestCase): # nested tuples variant = GLib.Variant('((si)(ub))', (('hello', -1), (42, True))) self.assertEqual(variant.get_type_string(), '((si)(ub))') - self.assertEqual(variant.unpack(), (('hello', -1), (_long(42), True))) + self.assertEqual(variant.unpack(), (('hello', -1), (long_(42), True))) def test_new_tuple_sink(self): # https://bugzilla.gnome.org/show_bug.cgi?id=735166 @@ -586,4 +586,4 @@ class TestConstants(unittest.TestCase): def test_basic_types_limits(self): self.assertTrue(isinstance(GLib.MINFLOAT, float)) - self.assertTrue(isinstance(GLib.MAXLONG, (int, _long))) + self.assertTrue(isinstance(GLib.MAXLONG, integer_types)) |