Merge pull request #2431 from bagerard/remove_pillow_test_restriction
Remove restriction on Pillow version in tests
This commit is contained in:
		
							
								
								
									
										2
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								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", | ||||
|     ], | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -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() | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user