diff --git a/testing/test_capture.py b/testing/test_capture.py index 0d1824ad8..a0c1d98ef 100644 --- a/testing/test_capture.py +++ b/testing/test_capture.py @@ -1017,7 +1017,7 @@ def test_close_and_capture_again(testdir): def test_close(): os.close(1) def test_capture_again(): - os.write(1, "hello\\n") + os.write(1, b"hello\\n") assert 0 """) result = testdir.runpytest()