summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2022-09-05 14:43:44 +0100
committerSimon McVittie <smcv@collabora.com>2022-09-05 17:35:54 +0100
commit9e60bd991b0fc9d6f6f553691770de650e52851c (patch)
tree266ff50a11f727bfcfddcb346b4e5ac69e75a483 /test
parentfe6d042506be51d4c4e38a573442c3e090bcc80d (diff)
Reinstate test coverage for pip install dbus-python
Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-signals.py3
-rwxr-xr-xtest/test-standalone.py9
2 files changed, 12 insertions, 0 deletions
diff --git a/test/test-signals.py b/test/test-signals.py
index 458f84b..107185d 100755
--- a/test/test-signals.py
+++ b/test/test-signals.py
@@ -60,6 +60,9 @@ if 'DBUS_TEST_UNINSTALLED' in os.environ:
raise Exception("DBus modules (%s) are not being picked up from the "
"package" % _dbus_bindings.__file__)
+logger.info('dbus found at %r', dbus.__file__)
+logger.info('_dbus_bindings found at %r', _dbus_bindings.__file__)
+
NAME = "org.freedesktop.DBus.TestSuitePythonService"
IFACE = "org.freedesktop.DBus.TestSuiteInterface"
OBJECT = "/org/freedesktop/DBus/TestSuitePythonObject"
diff --git a/test/test-standalone.py b/test/test-standalone.py
index 055704e..157ec4a 100755
--- a/test/test-standalone.py
+++ b/test/test-standalone.py
@@ -30,6 +30,7 @@ run in isolation.
from __future__ import unicode_literals
+import logging
import struct
import sys
import os
@@ -42,6 +43,11 @@ import dbus.types as types
import dbus_test_utils
+logging.basicConfig()
+logging.getLogger().setLevel(1)
+logger = logging.getLogger('test-standalone')
+
+
if 'DBUS_TEST_UNINSTALLED' in os.environ:
builddir = os.path.normpath(os.environ["DBUS_TOP_BUILDDIR"])
pydir = os.path.normpath(os.environ["DBUS_TOP_SRCDIR"])
@@ -66,6 +72,9 @@ assert (_dbus_bindings._python_version & 0xffff0000
'a different major version'\
% (_dbus_bindings._python_version, sys.hexversion)
+logger.info('dbus found at %r', dbus.__file__)
+logger.info('_dbus_bindings found at %r', _dbus_bindings.__file__)
+
def uni(x):
"""Return a Unicode string consisting of the single Unicode character
with the given codepoint (represented as a surrogate pair if this is