summaryrefslogtreecommitdiff
path: root/test/test-client.py
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2016-01-20 12:19:26 +0000
committerSimon McVittie <smcv@debian.org>2016-01-20 12:19:26 +0000
commitc145c7c6b6c62ef097ed33e1abeaa2987b01007d (patch)
treeed50397d4e6cc41e12a7934771abf5e6feda811a /test/test-client.py
parent9567e3eab6672705f7259970e8606f4e7adaf991 (diff)
downloaddbus-python-c145c7c6b6c62ef097ed33e1abeaa2987b01007d.tar.gz
Use non-recursive make for tests, and make them into installed-tests
Diffstat (limited to 'test/test-client.py')
-rwxr-xr-xtest/test-client.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/test/test-client.py b/test/test-client.py
index 1c8d7b4..f04b10c 100755
--- a/test/test-client.py
+++ b/test/test-client.py
@@ -30,9 +30,6 @@ import time
import logging
import weakref
-builddir = os.path.normpath(os.environ["DBUS_TOP_BUILDDIR"])
-pydir = os.path.normpath(os.environ["DBUS_TOP_SRCDIR"])
-
import dbus
import _dbus_bindings
import dbus.glib
@@ -48,13 +45,18 @@ except ImportError:
logging.basicConfig()
+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"])
+ pkg = dbus.__file__
-pkg = dbus.__file__
-if not pkg.startswith(pydir):
- raise Exception("DBus modules (%s) are not being picked up from the package"%pkg)
+ if not pkg.startswith(pydir):
+ raise Exception("DBus modules (%s) are not being picked up from the "
+ "package" % pkg)
-if not _dbus_bindings.__file__.startswith(builddir):
- raise Exception("DBus modules (%s) are not being picked up from the package"%_dbus_bindings.__file__)
+ if not _dbus_bindings.__file__.startswith(builddir):
+ raise Exception("DBus modules (%s) are not being picked up from the "
+ "package" % _dbus_bindings.__file__)
test_types_vals = [1, 12323231, 3.14159265, 99999999.99,
"dude", "123", "What is all the fuss about?", "gob@gob.com",