Skip to content

Commit

Permalink
tests: fix testing/test_capture.py::test_typeerror_encodedfile_write
Browse files Browse the repository at this point in the history
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'
  • Loading branch information
blueyed committed Oct 28, 2019
1 parent 7f8bf4d commit 60ceec6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions testing/test_capture.py
Expand Up @@ -1503,11 +1503,9 @@ def test_fails():
"""
)
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"]
)

0 comments on commit 60ceec6

Please sign in to comment.