From 65b6a35ef59c520a197f7eaddd91a67ac702eaf5 Mon Sep 17 00:00:00 2001 From: Wilhelm Schuermann Date: Fri, 8 May 2015 18:19:37 +0200 Subject: [PATCH] Tests: Make self.t('add proj:"with space" foo') work --- test/basetest/task.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/basetest/task.py b/test/basetest/task.py index f5f9ec31f..85322dbc9 100644 --- a/test/basetest/task.py +++ b/test/basetest/task.py @@ -172,11 +172,13 @@ class Task(object): try: # Python 2.x if isinstance(args, basestring): - args = args.split() + import shlex + args = shlex.split(args) except NameError: # Python 3.x if isinstance(args, str): - args = args.split() + import shlex + args = shlex.split(args) command.extend(args)