From 8ea996de13e1ad3c9865866385fa0ecb49d6cbca Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Wed, 20 Nov 2013 23:13:31 +0100 Subject: [PATCH] Revert "tests: Don't redefine PYTHONPATH" This reverts commit 6be5cc0f1b1d34521fa8d8c91ca1cc2a96a65b69. --- tests/help_test.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/help_test.py b/tests/help_test.py index 256bebd7..75d545bc 100644 --- a/tests/help_test.py +++ b/tests/help_test.py @@ -12,11 +12,9 @@ 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': ':'.join(python_path)}, + env={'PYTHONPATH': os.path.join(mopidy_dir, '..')}, stdout=subprocess.PIPE) output = process.communicate()[0] self.assertIn('--version', output)