Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tests/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import os.path
import tempfile
from datetime import datetime
from fnmatch import fnmatch
from unittest import mock

import mrcfile
Expand Down Expand Up @@ -456,7 +457,9 @@ def test_corrupt_mrc_load(caplog):
_ = Image.load(mrc_path)

# Check the message prefix
assert f"Image.load of {mrc_path} reporting 1 corruptions" in caplog.text
assert fnmatch(
caplog.text, f"*Image.load of {mrc_path} reporting [1-2] corruptions*"
)

# Check the message contains the file path
assert mrc_path in caplog.text
Expand Down
Loading