mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 01:04:29 +03:00
Lint fixes
This commit is contained in:
parent
5c3ae974cd
commit
e228cfcec7
|
@ -68,8 +68,8 @@ def test_textsize(request, tmp_path):
|
|||
(dx, dy) = font.getsize(chr(i))
|
||||
assert dy == 20
|
||||
assert dx in (0, 10)
|
||||
for l in range(len(message)):
|
||||
msg = message[: l + 1]
|
||||
for j in range(len(message)):
|
||||
msg = message[: j + 1]
|
||||
assert font.getsize(msg) == (len(msg) * 10, 20)
|
||||
|
||||
|
||||
|
|
|
@ -103,8 +103,8 @@ def _test_textsize(request, tmp_path, encoding):
|
|||
assert dy == 20
|
||||
assert dx in (0, 10)
|
||||
message = charsets[encoding]["message"].encode(encoding)
|
||||
for l in range(len(message)):
|
||||
msg = message[: l + 1]
|
||||
for j in range(len(message)):
|
||||
msg = message[: j + 1]
|
||||
assert font.getsize(msg) == (len(msg) * 10, 20)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user