summaryrefslogtreecommitdiff
path: root/tests/test_config.py
diff options
context:
space:
mode:
authorholger krekel <holger@merlinux.eu>2012-06-13 15:11:25 +0200
committerholger krekel <holger@merlinux.eu>2012-06-13 15:11:25 +0200
commitf65295181e95b84d667cef2623829cf140a14d54 (patch)
treed142e01c10c57a95b60e24826e03de7f721f3d28 /tests/test_config.py
parent1223b23eab2c637a7be9f49f33333392bdd8c26a (diff)
downloadtox-git-1.4.tar.gz
reformat and simplify ini-parsing/substitution code, adapt white space handling1.4
Diffstat (limited to 'tests/test_config.py')
-rw-r--r--tests/test_config.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_config.py b/tests/test_config.py
index f7c8beb5..ad2681f7 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -821,11 +821,10 @@ class TestCommandParser:
assert parsed == expected
def test_command_with_runs_of_whitespace(self):
- cmd = dedent("""cmd1 {item1}
- {item2}""")
+ cmd = "cmd1 {item1}\n {item2}"
p = CommandParser(cmd)
parsed = list(p.words())
- assert parsed == ['cmd1', ' ', '{item1}', ' ', '{item2}']
+ assert parsed == ['cmd1', ' ', '{item1}', '\n ', '{item2}']
def test_command_with_split_line_in_subst_arguments(self):
cmd = dedent(""" cmd2 {posargs:{item2}