Renamed variable

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
Andrew Murray 2020-06-06 19:42:24 +10:00 committed by GitHub
parent e228cfcec7
commit ec9015bea4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 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 j in range(len(message)):
msg = message[: j + 1]
for i in range(len(message)):
msg = message[: i + 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 j in range(len(message)):
msg = message[: j + 1]
for i in range(len(message)):
msg = message[: i + 1]
assert font.getsize(msg) == (len(msg) * 10, 20)