diff --git a/setup.py b/setup.py index 393de9c7..80819b13 100644 --- a/setup.py +++ b/setup.py @@ -115,7 +115,7 @@ extra_opts = { "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", ], } diff --git a/tests/fields/test_file_field.py b/tests/fields/test_file_field.py index de10c987..4f3f1d45 100644 --- a/tests/fields/test_file_field.py +++ b/tests/fields/test_file_field.py @@ -429,7 +429,7 @@ class TestFileField(MongoDBTestCase): @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() @@ -471,7 +471,7 @@ class TestFileField(MongoDBTestCase): @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()