Merge pull request #793 from ifosch/help-version-test-fixing

Help message test doesn't complain now when using external PYTHONPATH
This commit is contained in:
Stein Magnus Jodal 2014-07-26 12:56:12 +02:00
commit a650cc08c0

View File

@ -14,7 +14,10 @@ class HelpTest(unittest.TestCase):
args = [sys.executable, mopidy_dir, '--help']
process = subprocess.Popen(
args,
env={'PYTHONPATH': os.path.join(mopidy_dir, '..')},
env={'PYTHONPATH': ':'.join([
os.path.join(mopidy_dir, '..'),
os.environ.get('PYTHONPATH', '')
])},
stdout=subprocess.PIPE)
output = process.communicate()[0]
self.assertIn('--version', output)