Skip to content

Commit 03e2bec

Browse files
Support different exceptions repr.
1 parent a5a015a commit 03e2bec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_images_download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,5 +155,5 @@ def test_optimize_pil_error_generic(tmp_path, logs):
155155
with patch.object(Image, 'open') as mock:
156156
mock.side_effect = ValueError("pumba")
157157
optimize_image(str(tmp_image))
158-
msg = r"PIL optimization failed: ValueError\('pumba'\) when processing '.*foo.png'"
158+
msg = r"PIL optimization failed: ValueError\('pumba'.*\) when processing '.*foo.png'"
159159
assert msg in logs.debug

0 commit comments

Comments
 (0)