Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 00b25fd

Browse filesBrowse files
hugovkradarhere
andcommitted
Hide UserWarning in logs
Tests/test_file_tiff.py::TestFileTiff::test_oom[Tests/images/oom-225817ca0f8c663be7ab4b9e717b02c661e66834.tif] PIL/TiffImagePlugin.py:850: UserWarning: Corrupt EXIF data. Expecting to read 12 bytes but only got 6. warnings.warn(str(msg)) Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
1 parent 05b175e commit 00b25fd
Copy full SHA for 00b25fd

1 file changed

+3-2Lines changed: 3 additions & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Tests/test_file_tiff.py‎

Copy file name to clipboardExpand all lines: Tests/test_file_tiff.py
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -867,8 +867,9 @@ def test_timeout(self):
867867
@pytest.mark.timeout(2)
868868
def test_oom(self, test_file):
869869
with pytest.raises(UnidentifiedImageError):
870-
with Image.open(test_file) as im:
871-
pass
870+
with pytest.warns(UserWarning):
871+
with Image.open(test_file) as im:
872+
pass
872873

873874

874875

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.