[pygobject] tests: set DBUS_SESSION_BUS_ADDRESS to some invalid value to disable dbus
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] tests: set DBUS_SESSION_BUS_ADDRESS to some invalid value to disable dbus
- Date: Sat, 10 Feb 2018 10:18:24 +0000 (UTC)
commit 9a9bb732752e7bec42a1c13f080b37536876e3e0
Author: Christoph Reiter <reiter christoph gmail com>
Date: Sat Feb 10 11:16:49 2018 +0100
tests: set DBUS_SESSION_BUS_ADDRESS to some invalid value to disable dbus
While keepig it empty works on Linux, on Windows setting an invalid
value is needed to disable dbus.
tests/runtests.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/runtests.py b/tests/runtests.py
index 7cc7d508..b8f64b99 100755
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -44,7 +44,7 @@ if pid >= 0:
os.environ["DBUS_SESSION_BUS_ADDRESS"] = addr
atexit.register(os.kill, pid, signal.SIGKILL)
else:
- os.environ["DBUS_SESSION_BUS_ADDRESS"] = ""
+ os.environ["DBUS_SESSION_BUS_ADDRESS"] = "."
mydir = os.path.dirname(os.path.abspath(__file__))
tests_builddir = os.path.abspath(os.environ.get('TESTS_BUILDDIR', os.path.dirname(__file__)))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]