mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 09:26:16 +03:00
Formatting for readability
This commit is contained in:
parent
b2301d70d1
commit
adbb04d5dc
|
@ -306,7 +306,10 @@ def test_rotated_transposed_font(font, orientation):
|
||||||
bbox_b = draw.textbbox((20, 20), word)
|
bbox_b = draw.textbbox((20, 20), word)
|
||||||
|
|
||||||
# Check (w,h) of box a is (h,w) of box b
|
# Check (w,h) of box a is (h,w) of box b
|
||||||
assert (bbox_a[2] - bbox_a[0], bbox_a[3] - bbox_a[1]) == (
|
assert (
|
||||||
|
bbox_a[2] - bbox_a[0],
|
||||||
|
bbox_a[3] - bbox_a[1],
|
||||||
|
) == (
|
||||||
bbox_b[3] - bbox_b[1],
|
bbox_b[3] - bbox_b[1],
|
||||||
bbox_b[2] - bbox_b[0],
|
bbox_b[2] - bbox_b[0],
|
||||||
)
|
)
|
||||||
|
@ -349,7 +352,10 @@ def test_unrotated_transposed_font(font, orientation):
|
||||||
length_b = draw.textlength(word)
|
length_b = draw.textlength(word)
|
||||||
|
|
||||||
# Check boxes a and b are same size
|
# Check boxes a and b are same size
|
||||||
assert (bbox_a[2] - bbox_a[0], bbox_a[3] - bbox_a[1]) == (
|
assert (
|
||||||
|
bbox_a[2] - bbox_a[0],
|
||||||
|
bbox_a[3] - bbox_a[1],
|
||||||
|
) == (
|
||||||
bbox_b[2] - bbox_b[0],
|
bbox_b[2] - bbox_b[0],
|
||||||
bbox_b[3] - bbox_b[1],
|
bbox_b[3] - bbox_b[1],
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user