[pygobject] tests: don't depend on the order of objects returned by Gtk.Builder.get_objects(). Fixes #287
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] tests: don't depend on the order of objects returned by Gtk.Builder.get_objects(). Fixes #287
- Date: Sun, 20 Jan 2019 11:27:59 +0000 (UTC)
commit b2c6ecaa9b40ff2d7080e7812b81dc75df4316fb
Author: Christoph Reiter <reiter christoph gmail com>
Date: Sun Jan 20 12:25:02 2019 +0100
tests: don't depend on the order of objects returned by Gtk.Builder.get_objects(). Fixes #287
With gnome master things have changed (I assume due to glib hashing changes)
tests/test_overrides_gtk.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/tests/test_overrides_gtk.py b/tests/test_overrides_gtk.py
index 99406c63..fe98051c 100644
--- a/tests/test_overrides_gtk.py
+++ b/tests/test_overrides_gtk.py
@@ -1056,7 +1056,8 @@ class TestBuilder(unittest.TestCase):
builder.connect_signals({'on_signal1': (on_signal, 1, 2),
'on_signal2': on_signal})
- obj, emitter = builder.get_objects()
+ obj = builder.get_object("foo")
+ emitter = builder.get_object("object_sig_test")
emitter.emit("test-signal")
assert len(args_collector) == 2
assert args_collector[0] == (obj, 1, 2)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]