Skip to content

Commit cb5c8f6

Browse files
committed
Remove unused left_old variable
1 parent 606b5ae commit cb5c8f6

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Tests/test_imagefont.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -738,22 +738,22 @@ def test_textbbox_non_freetypefont(self):
738738
d.textbbox((0, 0), "test", font=default_font)
739739

740740
@pytest.mark.parametrize(
741-
"anchor, left, left_old, top",
741+
"anchor, left, top",
742742
(
743743
# test horizontal anchors
744-
("ls", 0, 0, -36),
745-
("ms", -64, -65, -36),
746-
("rs", -128, -129, -36),
744+
("ls", 0, -36),
745+
("ms", -64, -36),
746+
("rs", -128, -36),
747747
# test vertical anchors
748-
("ma", -64, -65, 16),
749-
("mt", -64, -65, 0),
750-
("mm", -64, -65, -17),
751-
("mb", -64, -65, -44),
752-
("md", -64, -65, -51),
748+
("ma", -64, 16),
749+
("mt", -64, 0),
750+
("mm", -64, -17),
751+
("mb", -64, -44),
752+
("md", -64, -51),
753753
),
754754
ids=("ls", "ms", "rs", "ma", "mt", "mm", "mb", "md"),
755755
)
756-
def test_anchor(self, anchor, left, left_old, top):
756+
def test_anchor(self, anchor, left, top):
757757
name, text = "quick", "Quick"
758758
path = f"Tests/images/test_anchor_{name}_{anchor}.png"
759759

0 commit comments

Comments
 (0)