Merge pull request #6093 from blueyed/fix-flaky
tests: fix testing/test_capture.py::test_typeerror_encodedfile_write
This commit is contained in:
commit
e7898dedf4
|
@ -1503,11 +1503,9 @@ def test_typeerror_encodedfile_write(testdir):
|
|||
"""
|
||||
)
|
||||
result_without_capture = testdir.runpytest("-s", str(p))
|
||||
|
||||
result_with_capture = testdir.runpytest(str(p))
|
||||
|
||||
assert result_with_capture.ret == result_without_capture.ret
|
||||
|
||||
result_with_capture.stdout.fnmatch_lines(
|
||||
["E TypeError: write() argument must be str, not bytes"]
|
||||
["E * TypeError: write() argument must be str, not bytes"]
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue