Skip to content

Commit

Permalink
Merge pull request #18 from blueyed/shell-true-for-windows
Browse files Browse the repository at this point in the history
Fix passing args to py.test on POSIX systems
  • Loading branch information
joeyespo committed Jun 27, 2015
2 parents e43644a + 8be055f commit 59e381f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pytest_watch/watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ def run(self, summary=None):
msg = ('Changes detected, rerunning: {}'
.format(highlight(command)))
print(STYLE_NORMAL + msg + Fore.RESET + Style.NORMAL)
exit_code = subprocess.call(['py.test'] + self.args, shell=True)
exit_code = subprocess.call(['py.test'] + self.args,
shell=subprocess.mswindows)
passed = exit_code == 0

# Beep if failed
Expand Down

0 comments on commit 59e381f

Please sign in to comment.