Skip to content

Commit 569625a

Browse files
committed
minor test formatting cleanup
1 parent b7eb469 commit 569625a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Tests/test_imagefont.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -890,13 +890,13 @@ def test_cbdt(self):
890890
im = Image.new("RGB", (150, 150), "white")
891891
d = ImageDraw.Draw(im)
892892

893-
d.text((10, 10), "\U0001f469", embedded_color=True, font=font)
893+
d.text((10, 10), "\U0001f469", font=font, embedded_color=True)
894894

895895
with Image.open("Tests/images/cbdt_notocoloremoji.png") as expected:
896896
assert_image_similar(im, expected, 6.2)
897-
except IOError as e:
897+
except IOError as e: # pragma: no cover
898898
assert str(e) in ("unimplemented feature", "unknown file format")
899-
pytest.skip("freetype compiled without libpng or unsupported")
899+
pytest.skip("freetype compiled without libpng or CBDT support")
900900

901901
@skip_unless_feature_version("freetype2", "2.5.0")
902902
def test_cbdt_mask(self):
@@ -914,9 +914,9 @@ def test_cbdt_mask(self):
914914

915915
with Image.open("Tests/images/cbdt_notocoloremoji_mask.png") as expected:
916916
assert_image_similar(im, expected, 6.2)
917-
except IOError as e:
917+
except IOError as e: # pragma: no cover
918918
assert str(e) in ("unimplemented feature", "unknown file format")
919-
pytest.skip("freetype compiled without libpng or unsupported")
919+
pytest.skip("freetype compiled without libpng or CBDT support")
920920

921921
@skip_unless_feature_version("freetype2", "2.5.1")
922922
def test_sbix(self):
@@ -930,13 +930,13 @@ def test_sbix(self):
930930
im = Image.new("RGB", (400, 400), "white")
931931
d = ImageDraw.Draw(im)
932932

933-
d.text((50, 50), "\uE901", embedded_color=True, font=font)
933+
d.text((50, 50), "\uE901", font=font, embedded_color=True)
934934

935935
with Image.open("Tests/images/chromacheck-sbix.png") as expected:
936936
assert_image_similar(im, expected, 1)
937-
except IOError as e:
937+
except IOError as e: # pragma: no cover
938938
assert str(e) in ("unimplemented feature", "unknown file format")
939-
pytest.skip("freetype compiled without libpng or unsupported")
939+
pytest.skip("freetype compiled without libpng or SBIX support")
940940

941941
@skip_unless_feature_version("freetype2", "2.5.1")
942942
def test_sbix_mask(self):
@@ -954,9 +954,9 @@ def test_sbix_mask(self):
954954

955955
with Image.open("Tests/images/chromacheck-sbix_mask.png") as expected:
956956
assert_image_similar(im, expected, 1)
957-
except IOError as e:
957+
except IOError as e: # pragma: no cover
958958
assert str(e) in ("unimplemented feature", "unknown file format")
959-
pytest.skip("freetype compiled without libpng or unsupported")
959+
pytest.skip("freetype compiled without libpng or SBIX support")
960960

961961
@skip_unless_feature_version("freetype2", "2.10.0")
962962
def test_colr(self):
@@ -969,7 +969,7 @@ def test_colr(self):
969969
im = Image.new("RGB", (300, 75), "white")
970970
d = ImageDraw.Draw(im)
971971

972-
d.text((15, 5), "Bungee", embedded_color=True, font=font)
972+
d.text((15, 5), "Bungee", font=font, embedded_color=True)
973973

974974
with Image.open("Tests/images/colr_bungee.png") as expected:
975975
assert_image_similar(im, expected, 21)

0 commit comments

Comments
 (0)