Lint fixes

This commit is contained in:
Andrew Murray 2020-06-06 12:07:57 +10:00
parent 5c3ae974cd
commit e228cfcec7
6 changed files with 74 additions and 74 deletions

View File

@ -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)

View File

@ -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)