tests: fix testing/test_capture.py::test_typeerror_encodedfile_write

Failed for me due to different indent (?) - not reproducible:

    >   ???
    E   Failed: nomatch: 'E           TypeError: write() argument must be str, not bytes'
    …
    E       and: '>   def mode(self):'
    E       and: 'E   TypeError: write() argument must be str, not bytes'
    …
    E   remains unmatched: 'E           TypeError: write() argument must be str, not bytes'
This commit is contained in:
Daniel Hahler 2019-10-28 14:34:43 +01:00
parent 7f8bf4d9f6
commit 60ceec6eb1
1 changed files with 1 additions and 3 deletions

View File

@ -1503,11 +1503,9 @@ def test_typeerror_encodedfile_write(testdir):
""" """
) )
result_without_capture = testdir.runpytest("-s", str(p)) result_without_capture = testdir.runpytest("-s", str(p))
result_with_capture = testdir.runpytest(str(p)) result_with_capture = testdir.runpytest(str(p))
assert result_with_capture.ret == result_without_capture.ret assert result_with_capture.ret == result_without_capture.ret
result_with_capture.stdout.fnmatch_lines( result_with_capture.stdout.fnmatch_lines(
["E TypeError: write() argument must be str, not bytes"] ["E * TypeError: write() argument must be str, not bytes"]
) )