diff options
author | Martin Pitt <martinpitt@gnome.org> | 2012-11-03 13:14:15 +0100 |
---|---|---|
committer | Martin Pitt <martinpitt@gnome.org> | 2012-11-03 13:14:15 +0100 |
commit | 8d52bceb1e0aa0dc79cf77f36dda9f953f170459 (patch) | |
tree | 864964fbc623ec005efaf7bfecdfbbeeb07523b5 /tests/test_glib.py | |
parent | 9f96325e75f7c5f88789ea3f74a068e73cfde1a2 (diff) | |
download | pygobject-8d52bceb1e0aa0dc79cf77f36dda9f953f170459.tar.gz |
Drop static glib_version and pyglib_version constants
Use the GLib version from GI instead, and the already existing gi.version_info.
Diffstat (limited to 'tests/test_glib.py')
-rw-r--r-- | tests/test_glib.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_glib.py b/tests/test_glib.py index 59004ae0..336cc8e7 100644 --- a/tests/test_glib.py +++ b/tests/test_glib.py @@ -179,3 +179,15 @@ https://my.org/q?x=1&y=2 self.assertEqual(call_data, [(cmd.stdout, GLib.IOCondition.IN, b'hello\n'), (cmd.stdout, GLib.IOCondition.IN, b'world\n')]) + + def test_glib_version(self): + (major, minor, micro) = GLib.glib_version + self.assertGreaterEqual(major, 2) + self.assertGreaterEqual(minor, 0) + self.assertGreaterEqual(micro, 0) + + def test_pyglib_version(self): + (major, minor, micro) = GLib.pyglib_version + self.assertGreaterEqual(major, 3) + self.assertGreaterEqual(minor, 7) + self.assertGreaterEqual(micro, 2) |