Updated tests for changed helper imports

This commit is contained in:
Andrew Murray 2021-02-22 12:14:49 +11:00
parent c709aa3d28
commit 8fb5fd7f63

View File

@ -911,8 +911,7 @@ class TestImageFont:
d.text((50, 50), "\uE901", font=font, embedded_color=True) d.text((50, 50), "\uE901", font=font, embedded_color=True)
with Image.open("Tests/images/chromacheck-sbix.png") as expected: assert_image_similar_tofile(im, "Tests/images/chromacheck-sbix.png", 1)
assert_image_similar(im, expected, 1)
except IOError as e: # pragma: no cover except IOError as e: # pragma: no cover
assert str(e) in ("unimplemented feature", "unknown file format") assert str(e) in ("unimplemented feature", "unknown file format")
pytest.skip("freetype compiled without libpng or SBIX support") 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) d.text((50, 50), "\uE901", (100, 0, 0), font=font)
with Image.open("Tests/images/chromacheck-sbix_mask.png") as expected: assert_image_similar_tofile(im, "Tests/images/chromacheck-sbix_mask.png", 1)
assert_image_similar(im, expected, 1)
except IOError as e: # pragma: no cover except IOError as e: # pragma: no cover
assert str(e) in ("unimplemented feature", "unknown file format") assert str(e) in ("unimplemented feature", "unknown file format")
pytest.skip("freetype compiled without libpng or SBIX support") pytest.skip("freetype compiled without libpng or SBIX support")