[pygobject] tests: disable dbus tests on Windows/macOS



commit d9516e8dc32db9494139a733ae3a535d2f89c6e1
Author: Christoph Reiter <reiter christoph gmail com>
Date:   Fri Feb 9 14:12:20 2018 +0100

    tests: disable dbus tests on Windows/macOS
    
    dbus-daemon is available in MSYS2 unlike dbus-run-session but the
    tests fail. Disable dbus tests on Windows/macOS to restore the
    old behaviour for now.

 tests/runtests.py | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/tests/runtests.py b/tests/runtests.py
index 0cab43de..7cc7d508 100755
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -23,6 +23,9 @@ if '--help' in sys.argv:
 
 
 def dbus_launch_session():
+    if os.name == "nt" or sys.platform == "darwin":
+        return (-1, "")
+
     try:
         out = subprocess.check_output([
             "dbus-daemon", "--session", "--fork", "--print-address=1",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]