summaryrefslogtreecommitdiff
path: root/tests/test_config.py
diff options
context:
space:
mode:
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}