Corrected error in restoring sys.stdout

This commit is contained in:
Andrew Murray 2021-05-07 20:44:46 +10:00
parent 8354fa4929
commit e7749abdf9
2 changed files with 2 additions and 2 deletions

View File

@ -715,7 +715,7 @@ class TestFilePng:
@pytest.mark.parametrize("buffer", (True, False))
def test_save_stdout(self, buffer):
old_stdout = sys.stdout.buffer
old_stdout = sys.stdout
if buffer:

View File

@ -49,7 +49,7 @@ def test_draw_postscript(tmp_path):
@pytest.mark.parametrize("buffer", (True, False))
def test_stdout(buffer):
# Temporarily redirect stdout
old_stdout = sys.stdout.buffer
old_stdout = sys.stdout
if buffer: