mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 01:16:16 +03:00
commit
9df95e77c5
|
@ -9,7 +9,7 @@ repos:
|
|||
types: []
|
||||
|
||||
- repo: https://gitlab.com/pycqa/flake8
|
||||
rev: 3.7.9
|
||||
rev: 3.8.2
|
||||
hooks:
|
||||
- id: flake8
|
||||
additional_dependencies: [flake8-2020, flake8-implicit-str-concat]
|
||||
|
|
|
@ -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 i in range(len(message)):
|
||||
msg = message[: i + 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 i in range(len(message)):
|
||||
msg = message[: i + 1]
|
||||
assert font.getsize(msg) == (len(msg) * 10, 20)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user