From 9fb5ddf77890095a08553309e49467a1baf50c9b Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Mon, 23 May 2016 20:41:47 -0300 Subject: [PATCH] Fix shell argument split in win32 This fixes the bug inserted by accident in #1523 --- _pytest/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_pytest/config.py b/_pytest/config.py index a458e9573..9a308df2b 100644 --- a/_pytest/config.py +++ b/_pytest/config.py @@ -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: