From 0c927f8f969f5d94b4f4a46d035fadb8c06113eb Mon Sep 17 00:00:00 2001 From: Jonathan Wren Date: Wed, 6 May 2020 18:04:50 -0700 Subject: [PATCH] Fix for windows shell parsing in our test suite Co-authored-by: Micah Jerome Ellison --- features/steps/core.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/features/steps/core.py b/features/steps/core.py index 2a32ef95..33725bac 100644 --- a/features/steps/core.py +++ b/features/steps/core.py @@ -45,9 +45,7 @@ keyring.set_keyring(TestKeyring()) def ushlex(command): - if sys.version_info[0] == 3: - return shlex.split(command) - return map(lambda s: s.decode("UTF8"), shlex.split(command.encode("utf8"))) + return shlex.split(command, posix="win32" not in sys.platform) def read_journal(journal_name="default"):