Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
  • Loading branch information
akx and radarhere committed Mar 3, 2023
1 parent 32bfee0 commit 912ab3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Tests/test_core_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,11 @@ def test_units(self):

@pytest.mark.parametrize(
"var",
[
(
{"PILLOW_ALIGNMENT": "15"},
{"PILLOW_BLOCK_SIZE": "1024"},
{"PILLOW_BLOCKS_MAX": "wat"},
],
),
)
def test_warnings(self, var):
with pytest.warns(UserWarning):
Expand Down
3 changes: 2 additions & 1 deletion Tests/test_file_webp.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def test_unsupported(self):
file_path = "Tests/images/hopper.webp"
with pytest.warns(UserWarning):
with pytest.raises(OSError):
Image.open(file_path)
with Image.open(file_path):
pass

if HAVE_WEBP:
WebPImagePlugin.SUPPORTED = True
Expand Down

0 comments on commit 912ab3e

Please sign in to comment.