Skip to content

Commit

Permalink
Fix shell argument split in win32
Browse files Browse the repository at this point in the history
This fixes the bug inserted by accident in #1523
  • Loading branch information
nicoddemus committed May 23, 2016
1 parent 6f98cd6 commit 9fb5ddf
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 9fb5ddf

Please sign in to comment.