diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-08-19 15:14:17 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-08-19 15:15:50 +0200 |
commit | e19934f2d348a3e358be50280ee73ee345682ed6 (patch) | |
tree | 91a0ff21defecaf89cfca255a982d2a1fd8d71cd | |
parent | 492dd2d24470faf4044ac560747aa9783ec2c7a6 (diff) | |
download | pygobject-e19934f2d348a3e358be50280ee73ee345682ed6.tar.gz |
tests: only run the new unbind tests with glib 2.57.3
The fix isn't included in 2.57.2 and there hasn't been a new release yet.
-rw-r--r-- | gi/overrides/GObject.py | 2 | ||||
-rw-r--r-- | tests/test_gobject.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gi/overrides/GObject.py b/gi/overrides/GObject.py index 089b2a4c..68ba6d50 100644 --- a/gi/overrides/GObject.py +++ b/gi/overrides/GObject.py @@ -707,7 +707,7 @@ class Binding(GObjectModule.Binding): def unbind(self): # Fixed in newer glib - if (GLib.MAJOR_VERSION, GLib.MINOR_VERSION, GLib.MICRO_VERSION) >= (2, 57, 2): + if (GLib.MAJOR_VERSION, GLib.MINOR_VERSION, GLib.MICRO_VERSION) >= (2, 57, 3): return super(Binding, self).unbind() if hasattr(self, '_unbound'): diff --git a/tests/test_gobject.py b/tests/test_gobject.py index 17106da0..bef3e9b5 100644 --- a/tests/test_gobject.py +++ b/tests/test_gobject.py @@ -592,7 +592,7 @@ class TestPropertyBindings(unittest.TestCase): glib_version = (GLib.MAJOR_VERSION, GLib.MINOR_VERSION, GLib.MICRO_VERSION) # calling unbind() on an already unbound binding - if glib_version >= (2, 57, 2): + if glib_version >= (2, 57, 3): # Fixed in newer glib: # https://gitlab.gnome.org/GNOME/glib/merge_requests/244 for i in range(10): |