mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Renamed variable
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
parent
e228cfcec7
commit
ec9015bea4
|
@ -68,8 +68,8 @@ def test_textsize(request, tmp_path):
|
||||||
(dx, dy) = font.getsize(chr(i))
|
(dx, dy) = font.getsize(chr(i))
|
||||||
assert dy == 20
|
assert dy == 20
|
||||||
assert dx in (0, 10)
|
assert dx in (0, 10)
|
||||||
for j in range(len(message)):
|
for i in range(len(message)):
|
||||||
msg = message[: j + 1]
|
msg = message[: i + 1]
|
||||||
assert font.getsize(msg) == (len(msg) * 10, 20)
|
assert font.getsize(msg) == (len(msg) * 10, 20)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -103,8 +103,8 @@ def _test_textsize(request, tmp_path, encoding):
|
||||||
assert dy == 20
|
assert dy == 20
|
||||||
assert dx in (0, 10)
|
assert dx in (0, 10)
|
||||||
message = charsets[encoding]["message"].encode(encoding)
|
message = charsets[encoding]["message"].encode(encoding)
|
||||||
for j in range(len(message)):
|
for i in range(len(message)):
|
||||||
msg = message[: j + 1]
|
msg = message[: i + 1]
|
||||||
assert font.getsize(msg) == (len(msg) * 10, 20)
|
assert font.getsize(msg) == (len(msg) * 10, 20)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user