pytest.importorskip
will now issue a warning if the module could be found, but raised ImportError
instead of ModuleNotFoundError
.
The warning can be suppressed by passing exc_type=ImportError
to pytest.importorskip
.
See import-or-skip-import-error
for details.