Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
orlnub123 authored and radarhere committed Feb 16, 2020
1 parent 518eef6 commit 7d3c9b0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Tests/test_image_thumbnail.py
Expand Up @@ -34,14 +34,14 @@ def test_aspect():
im.thumbnail((100, 100))
assert im.size == (100, 50)

im = Image.new("L", (256, 128))
im.thumbnail((100, 50))
assert im.size == (100, 50)

im = Image.new("L", (64, 64))
im.thumbnail((100, 100))
assert im.size == (64, 64)

im = Image.new("L", (128, 128))
im.thumbnail((100, 100))
assert im.size == (100, 100)

im = Image.new("L", (256, 162)) # ratio is 1.5802469136
im.thumbnail((33, 33))
assert im.size == (33, 21) # ratio is 1.5714285714
Expand All @@ -62,7 +62,7 @@ def test_aspect():
def test_float():
im = Image.new("L", (128, 128))
im.thumbnail((99.9, 99.9))
assert im.size == (100, 100)
assert im.size == (99, 99)


def test_no_resize():
Expand Down

0 comments on commit 7d3c9b0

Please sign in to comment.