Revert "tests: Don't redefine PYTHONPATH"
This reverts commit 6be5cc0f1b.
This commit is contained in:
parent
16a76d4ea5
commit
8ea996de13
@ -12,11 +12,9 @@ class HelpTest(unittest.TestCase):
|
|||||||
def test_help_has_mopidy_options(self):
|
def test_help_has_mopidy_options(self):
|
||||||
mopidy_dir = os.path.dirname(mopidy.__file__)
|
mopidy_dir = os.path.dirname(mopidy.__file__)
|
||||||
args = [sys.executable, mopidy_dir, '--help']
|
args = [sys.executable, mopidy_dir, '--help']
|
||||||
python_path = sys.path[:]
|
|
||||||
python_path.insert(0, os.path.join(mopidy_dir, '..'))
|
|
||||||
process = subprocess.Popen(
|
process = subprocess.Popen(
|
||||||
args,
|
args,
|
||||||
env={'PYTHONPATH': ':'.join(python_path)},
|
env={'PYTHONPATH': os.path.join(mopidy_dir, '..')},
|
||||||
stdout=subprocess.PIPE)
|
stdout=subprocess.PIPE)
|
||||||
output = process.communicate()[0]
|
output = process.communicate()[0]
|
||||||
self.assertIn('--version', output)
|
self.assertIn('--version', output)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user