Skip to content

Commit 09c221a

Browse files
author
Eric Cheng
authored
fix tests on windows (#241)
fix searchcommands_app example tests so that it'll work on windows machine
1 parent f489b05 commit 09c221a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/searchcommands/test_searchcommands_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ def _run_command(self, name, action=None, phase=None, protocol=2):
416416
ofile.write(b)
417417
with io.open(uncompressed_file, 'rb') as ifile:
418418
env = os.environ.copy()
419-
env['PYTHONPATH'] = ":".join(sys.path)
419+
env['PYTHONPATH'] = os.pathsep.join(sys.path)
420420
process = Popen(recording.get_args(command), stdin=ifile, stderr=PIPE, stdout=PIPE, env=env)
421421
output, errors = process.communicate()
422422
with io.open(recording.output_file, 'rb') as ifile:

0 commit comments

Comments
 (0)