mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Corrected error in restoring sys.stdout
This commit is contained in:
parent
8354fa4929
commit
e7749abdf9
|
@ -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:
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user