Update Tests/test_image.py

Keep the original test cases; add the most likely non-uppercase versions.

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
Piolie 2021-02-05 12:21:27 -03:00 committed by GitHub
parent 0c1675a143
commit 4a9a999dbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,7 +94,7 @@ class TestImage:
with pytest.raises(TypeError):
Image.open(PNGFILE, formats=123)
for formats in [["jPeG"], ("JpEg",)]:
for formats in [["JPEG"], ("JPEG",), ["jpeg"], ["Jpeg"], ["jPeG"], ["JpEg"]]:
with pytest.raises(UnidentifiedImageError):
Image.open(PNGFILE, formats=formats)