mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Updated tests for changed helper imports
This commit is contained in:
parent
c709aa3d28
commit
8fb5fd7f63
|
@ -911,8 +911,7 @@ class TestImageFont:
|
|||
|
||||
d.text((50, 50), "\uE901", font=font, embedded_color=True)
|
||||
|
||||
with Image.open("Tests/images/chromacheck-sbix.png") as expected:
|
||||
assert_image_similar(im, expected, 1)
|
||||
assert_image_similar_tofile(im, "Tests/images/chromacheck-sbix.png", 1)
|
||||
except IOError as e: # pragma: no cover
|
||||
assert str(e) in ("unimplemented feature", "unknown file format")
|
||||
pytest.skip("freetype compiled without libpng or SBIX support")
|
||||
|
@ -931,8 +930,7 @@ class TestImageFont:
|
|||
|
||||
d.text((50, 50), "\uE901", (100, 0, 0), font=font)
|
||||
|
||||
with Image.open("Tests/images/chromacheck-sbix_mask.png") as expected:
|
||||
assert_image_similar(im, expected, 1)
|
||||
assert_image_similar_tofile(im, "Tests/images/chromacheck-sbix_mask.png", 1)
|
||||
except IOError as e: # pragma: no cover
|
||||
assert str(e) in ("unimplemented feature", "unknown file format")
|
||||
pytest.skip("freetype compiled without libpng or SBIX support")
|
||||
|
|
Loading…
Reference in New Issue
Block a user