We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adb12d1 commit 80458c2Copy full SHA for 80458c2
tests/test_pytest_icdiff.py
@@ -231,15 +231,17 @@ def test_one():
231
232
def test_mutliline_strings_have_no_escaped_newlines(testdir):
233
testdir.makepyfile(
234
- """
+ r"""
235
def test_one():
236
- one = "a\nb\nc\nd\ne\nf"
237
- two = "a\nb\nc\nd\ne\nf\ng"
+ one = "a\nb\nc\nd"
+ two = "a\nb\nc\ndd"
238
assert one == two"""
239
)
240
output = testdir.runpytest("-vv", "--color=yes").stdout.str()
241
- assert "\\n" not in output
242
- assert "\n" in output
+ print(repr(output))
+ assert "a" + " " * 36 in output
243
+ assert "b" + " " * 36 in output
244
+ assert "c" + " " * 36 in output
245
246
247
def test_columns_are_calculated_outside_hook(testdir):
0 commit comments