Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 308 Bytes

11523.improvement.rst

File metadata and controls

5 lines (3 loc) · 308 Bytes

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.