From 6be5cc0f1b1d34521fa8d8c91ca1cc2a96a65b69 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Wed, 20 Nov 2013 22:40:12 +0100 Subject: [PATCH] tests: Don't redefine PYTHONPATH Shot in the dark to get Travis to find dbus-python when running the `mopidy` command as a subprocess of the tests. --- tests/help_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/help_test.py b/tests/help_test.py index 75d545bc..256bebd7 100644 --- a/tests/help_test.py +++ b/tests/help_test.py @@ -12,9 +12,11 @@ class HelpTest(unittest.TestCase): def test_help_has_mopidy_options(self): mopidy_dir = os.path.dirname(mopidy.__file__) args = [sys.executable, mopidy_dir, '--help'] + python_path = sys.path[:] + python_path.insert(0, os.path.join(mopidy_dir, '..')) process = subprocess.Popen( args, - env={'PYTHONPATH': os.path.join(mopidy_dir, '..')}, + env={'PYTHONPATH': ':'.join(python_path)}, stdout=subprocess.PIPE) output = process.communicate()[0] self.assertIn('--version', output)