From 60ceec6eb180ba1ac76741edf82804ed9ae8baf2 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Mon, 28 Oct 2019 14:34:43 +0100 Subject: [PATCH] tests: fix testing/test_capture.py::test_typeerror_encodedfile_write MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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' --- testing/test_capture.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/testing/test_capture.py b/testing/test_capture.py index eb55093bbfd..4320a7caeb2 100644 --- a/testing/test_capture.py +++ b/testing/test_capture.py @@ -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"] )