Merge pull request #5474 from radarhere/stdout

This commit is contained in:
Hugo van Kemenade 2021-05-09 23:17:23 +03:00 committed by GitHub
commit 79eb24ba34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: