diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2015-01-27 16:36:02 +0100 |
---|---|---|
committer | Christoph Reiter <creiter@src.gnome.org> | 2015-03-03 13:19:47 +0100 |
commit | 9285b23cd1b253baaf06ddd49e2f000716bbf7f3 (patch) | |
tree | 737680a60b16153f3c517d5f03fda46fef7246cd /tests/test_overrides_glib.py | |
parent | f74acb38f1410982f3419acb134adf173600e497 (diff) | |
download | pygobject-9285b23cd1b253baaf06ddd49e2f000716bbf7f3.tar.gz |
Add GLib.MINFLOAT etc. and mark GObject.G_MINFLOAT etc. deprecated.
They are defined in glib, not gobject and not included in the gir;
Similar constants like G_MAXINT64 are defined in GLib gir and marked
deprecated in the GObject overrides already.
https://bugzilla.gnome.org/show_bug.cgi?id=743514
Diffstat (limited to 'tests/test_overrides_glib.py')
-rw-r--r-- | tests/test_overrides_glib.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_overrides_glib.py b/tests/test_overrides_glib.py index af688952..4f630dc4 100644 --- a/tests/test_overrides_glib.py +++ b/tests/test_overrides_glib.py @@ -494,3 +494,10 @@ class TestGVariant(unittest.TestCase): # with override constructor v = GLib.Variant('(is)', (1, 'somestring')) self.assertEqual(str(v), "(1, 'somestring')") + + +class TestConstants(unittest.TestCase): + + def test_basic_types_limits(self): + self.assertTrue(isinstance(GLib.MINFLOAT, float)) + self.assertTrue(isinstance(GLib.MAXLONG, (int, _long))) |