mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-08 22:03:09 +03:00
Fix g4_tiff test on Python 3
This commit is contained in:
parent
cfd933bda4
commit
e071f062cf
|
@ -2,7 +2,7 @@ from tester import *
|
||||||
|
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
||||||
import StringIO
|
from io import BytesIO
|
||||||
import random
|
import random
|
||||||
|
|
||||||
def test_sanity():
|
def test_sanity():
|
||||||
|
@ -106,7 +106,7 @@ def test_g4_tiff_stringio():
|
||||||
"""Testing the stringio loading code path"""
|
"""Testing the stringio loading code path"""
|
||||||
|
|
||||||
file = "Tests/images/lena_g4_500.tif"
|
file = "Tests/images/lena_g4_500.tif"
|
||||||
s = StringIO.StringIO()
|
s = BytesIO()
|
||||||
with open(file,'rb') as f:
|
with open(file,'rb') as f:
|
||||||
s.write(f.read())
|
s.write(f.read())
|
||||||
s.seek(0)
|
s.seek(0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user