Skip to content

Commit 8fb5fd7

Browse files
committed
Updated tests for changed helper imports
1 parent c709aa3 commit 8fb5fd7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Tests/test_imagefont.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -911,8 +911,7 @@ def test_sbix(self):
911911

912912
d.text((50, 50), "\uE901", font=font, embedded_color=True)
913913

914-
with Image.open("Tests/images/chromacheck-sbix.png") as expected:
915-
assert_image_similar(im, expected, 1)
914+
assert_image_similar_tofile(im, "Tests/images/chromacheck-sbix.png", 1)
916915
except IOError as e: # pragma: no cover
917916
assert str(e) in ("unimplemented feature", "unknown file format")
918917
pytest.skip("freetype compiled without libpng or SBIX support")
@@ -931,8 +930,7 @@ def test_sbix_mask(self):
931930

932931
d.text((50, 50), "\uE901", (100, 0, 0), font=font)
933932

934-
with Image.open("Tests/images/chromacheck-sbix_mask.png") as expected:
935-
assert_image_similar(im, expected, 1)
933+
assert_image_similar_tofile(im, "Tests/images/chromacheck-sbix_mask.png", 1)
936934
except IOError as e: # pragma: no cover
937935
assert str(e) in ("unimplemented feature", "unknown file format")
938936
pytest.skip("freetype compiled without libpng or SBIX support")

0 commit comments

Comments
 (0)