Skip to content

Commit 7b8d678

Browse files
committed
No line numbers here
1 parent 814dfde commit 7b8d678

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

testing/test_capture.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -1550,17 +1550,15 @@ def test_fails():
15501550
'> sys.stdout.write(b"foo")',
15511551
"> raise TypeError*",
15521552
"E TypeError: write() argument must be str, not bytes",
1553-
"FAILED test_typeerror_encodedfile_write.py:3::test_fails"
1554-
" - TypeError: write() argument must be str, not bytes",
1553+
"FAILED test_typeerror_encodedfile_write.py::test_fails - *",
15551554
]
15561555
)
15571556
result_without_capture = testdir.runpytest("-s", str(p))
15581557
result_without_capture.stdout.fnmatch_lines(
15591558
[
15601559
'> sys.stdout.write(b"foo")',
15611560
"E TypeError: write() argument must be str, not bytes",
1562-
"FAILED test_typeerror_encodedfile_write.py:3::test_fails"
1563-
" - TypeError: write() argument must be str, not bytes",
1561+
"FAILED test_typeerror_encodedfile_write.py::test_fails - *",
15641562
]
15651563
)
15661564

0 commit comments

Comments
 (0)