Skip to content

Commit

Permalink
Merge pull request #1566 from nicoddemus/fix-win32-path
Browse files Browse the repository at this point in the history
Fix shell argument split in win32
  • Loading branch information
RonnyPfannschmidt committed May 24, 2016
2 parents 6f98cd6 + 9fb5ddf commit 436e13a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _pytest/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def _prepareconfig(args=None, plugins=None):
elif not isinstance(args, (tuple, list)):
if not isinstance(args, str):
raise ValueError("not a string or argument list: %r" % (args,))
args = shlex.split(args, posix=sys.platform == "win32")
args = shlex.split(args, posix=sys.platform != "win32")
config = get_config()
pluginmanager = config.pluginmanager
try:
Expand Down

0 comments on commit 436e13a

Please sign in to comment.