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.
This commit is contained in:
parent
f233d8c48e
commit
6be5cc0f1b
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user