Skip to content

Commit

Permalink
Updated tests for changed helper imports
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Feb 22, 2021
1 parent c709aa3 commit 8fb5fd7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Tests/test_imagefont.py
Original file line number Diff line number Diff line change
Expand Up @@ -911,8 +911,7 @@ def test_sbix(self):

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")
Expand All @@ -931,8 +930,7 @@ def test_sbix_mask(self):

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")
Expand Down

0 comments on commit 8fb5fd7

Please sign in to comment.