diff options
author | Christoph Reiter <creiter@src.gnome.org> | 2017-03-22 14:07:49 +0100 |
---|---|---|
committer | Christoph Reiter <creiter@src.gnome.org> | 2017-03-24 08:32:47 +0100 |
commit | 23deef70102657e75e07e54b4378c20214c867f3 (patch) | |
tree | 90f8f4a00dec6efa12b3bb3beeb5dca4b0c59dd4 /tests/test_overrides_gtk.py | |
parent | 5399bb785e625c36025d6bc1e5cf2b5519759d0d (diff) | |
download | pygobject-23deef70102657e75e07e54b4378c20214c867f3.tar.gz |
tests: Make test suite run on macOS
* Skip all tests which fail, crash or hang.
* Disable D-Bus in case dbus-run-session is not available.
https://bugzilla.gnome.org/show_bug.cgi?id=780396
Diffstat (limited to 'tests/test_overrides_gtk.py')
-rw-r--r-- | tests/test_overrides_gtk.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_overrides_gtk.py b/tests/test_overrides_gtk.py index 8e8a66db..ec6d0456 100644 --- a/tests/test_overrides_gtk.py +++ b/tests/test_overrides_gtk.py @@ -664,6 +664,7 @@ class TestWidget(unittest.TestCase): button.style_get_property('not-a-valid-style-property') +@unittest.skipIf(sys.platform == "darwin", "hangs") @unittest.skipUnless(Gtk, 'Gtk not available') class TestSignals(unittest.TestCase): def test_class_closure_override_with_aliased_type(self): @@ -1698,6 +1699,7 @@ class TestTreeModel(unittest.TestCase): self.assertTrue(filt is not None) +@unittest.skipIf(sys.platform == "darwin", "hangs") @unittest.skipUnless(Gtk, 'Gtk not available') class TestTreeView(unittest.TestCase): def test_tree_view(self): |