Skip to content

Commit

Permalink
Merge pull request #2431 from bagerard/remove_pillow_test_restriction
Browse files Browse the repository at this point in the history
Remove restriction on Pillow version in tests
  • Loading branch information
bagerard committed Nov 29, 2020
2 parents bf411ab + b1a2cf0 commit 92f6fce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def run_tests(self):
"pytest-cov",
"coverage<5.0", # recent coverage switched to sqlite format for the .coverage file which isn't handled properly by coveralls
"blinker",
"Pillow>=2.0.0, <7.0.0", # 7.0.0 dropped Python2 support
"Pillow>=7.0.0",
],
}

Expand Down
4 changes: 2 additions & 2 deletions tests/fields/test_file_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ class TestFile(Document):
@require_pil
def test_image_field_resize(self):
class TestImage(Document):
image = ImageField(size=(185, 37))
image = ImageField(size=(185, 37, True))

TestImage.drop_collection()

Expand Down Expand Up @@ -471,7 +471,7 @@ class TestImage(Document):
@require_pil
def test_image_field_thumbnail(self):
class TestImage(Document):
image = ImageField(thumbnail_size=(92, 18))
image = ImageField(thumbnail_size=(92, 18, True))

TestImage.drop_collection()

Expand Down

0 comments on commit 92f6fce

Please sign in to comment.