Skip to content

Commit 436e13a

Browse files
Merge pull request #1566 from nicoddemus/fix-win32-path
Fix shell argument split in win32
2 parents 6f98cd6 + 9fb5ddf commit 436e13a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_pytest/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def _prepareconfig(args=None, plugins=None):
104104
elif not isinstance(args, (tuple, list)):
105105
if not isinstance(args, str):
106106
raise ValueError("not a string or argument list: %r" % (args,))
107-
args = shlex.split(args, posix=sys.platform == "win32")
107+
args = shlex.split(args, posix=sys.platform != "win32")
108108
config = get_config()
109109
pluginmanager = config.pluginmanager
110110
try:

0 commit comments

Comments
 (0)