Skip to content

Commit 0233abd

Browse files
committed
fix test
1 parent f773d50 commit 0233abd

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tests_py/test_read_write.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,7 @@ def test_write_yaml_defaults_to_stdout_when_path_is_none(capfd: pytest.CaptureFi
3232
yaml12.write_yaml(value, path=None)
3333
output = capfd.readouterr().out
3434

35-
expected = textwrap.dedent(
36-
f"""\
37-
---
38-
{encoded}
39-
...
40-
"""
41-
)
35+
expected = f"---\n{encoded}\n...\n"
4236

4337
assert output == expected
4438
assert yaml12.parse_yaml(output) == value

0 commit comments

Comments
 (0)