summaryrefslogtreecommitdiff
path: root/tests/test_glib.py
diff options
context:
space:
mode:
authorChristoph Reiter <creiter@src.gnome.org>2017-03-22 14:07:49 +0100
committerChristoph Reiter <creiter@src.gnome.org>2017-03-24 08:32:47 +0100
commit23deef70102657e75e07e54b4378c20214c867f3 (patch)
tree90f8f4a00dec6efa12b3bb3beeb5dca4b0c59dd4 /tests/test_glib.py
parent5399bb785e625c36025d6bc1e5cf2b5519759d0d (diff)
downloadpygobject-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_glib.py')
-rw-r--r--tests/test_glib.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_glib.py b/tests/test_glib.py
index 6331d118..dbde5897 100644
--- a/tests/test_glib.py
+++ b/tests/test_glib.py
@@ -1,6 +1,7 @@
# -*- Mode: Python -*-
# encoding: UTF-8
+import sys
import unittest
import os.path
import warnings
@@ -85,6 +86,7 @@ https://my.org/q?x=1&y=2
self.assertTrue(isinstance(tm, float))
self.assertGreater(tm, 1350000000.0)
+ @unittest.skipIf(sys.platform == "darwin", "fails on OSX")
def test_main_loop(self):
# note we do not test run() here, as we use this in countless other
# tests