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)