Skip to content

Commit

Permalink
(Re-)raise exception when imagehash not available (#3435)
Browse files Browse the repository at this point in the history
Co-authored-by: Valeriu Predoi <[email protected]>
  • Loading branch information
alistairsellar and valeriupredoi authored Feb 20, 2024
1 parent 40f047a commit 10ec425
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion esmvaltool/utils/testing/regression/compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@

try:
import imagehash
except ImportError:
except ImportError as exc:
print("Please `pip install imagehash`")
raise exc

IGNORE_FILES: tuple[str, ...] = (
'*_citation.bibtex',
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
addopts =
--doctest-modules
--ignore=doc/sphinx/source/conf.py
--ignore=esmvaltool/utils/testing/regression/compare.py
--ignore=tests/unit/utils/test_compare.py
--cov=esmvaltool
--cov-report=xml:test-reports/coverage.xml
--cov-report=html:test-reports/coverage_html
Expand Down

0 comments on commit 10ec425

Please sign in to comment.