From bdfe588a010927490880463bb77918a4fac24952 Mon Sep 17 00:00:00 2001 From: Manuel Ebert Date: Mon, 20 Apr 2015 14:12:34 +0200 Subject: [PATCH] Fix test arg parsing --- features/steps/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/features/steps/core.py b/features/steps/core.py index 3e0b1de8..ba5b3abe 100644 --- a/features/steps/core.py +++ b/features/steps/core.py @@ -18,7 +18,9 @@ def _parse_args(command): nargs = [] concats = [] for a in command.split()[1:]: - if a.startswith("'"): + if a.startswith("'") and a.endswith("'"): + nargs.append(a.strip("'")) + elif a.startswith("'"): concats.append(a.strip("'")) elif a.endswith("'"): concats.append(a.strip("'"))