mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-28 18:10:33 +03:00
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:
parent
0c1675a143
commit
4a9a999dbb
|
@ -94,7 +94,7 @@ class TestImage:
|
||||||
with pytest.raises(TypeError):
|
with pytest.raises(TypeError):
|
||||||
Image.open(PNGFILE, formats=123)
|
Image.open(PNGFILE, formats=123)
|
||||||
|
|
||||||
for formats in [["jPeG"], ("JpEg",)]:
|
for formats in [["JPEG"], ("JPEG",), ["jpeg"], ["Jpeg"], ["jPeG"], ["JpEg"]]:
|
||||||
with pytest.raises(UnidentifiedImageError):
|
with pytest.raises(UnidentifiedImageError):
|
||||||
Image.open(PNGFILE, formats=formats)
|
Image.open(PNGFILE, formats=formats)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user