Skip to content

Commit

Permalink
Fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed Apr 25, 2024
1 parent b59336a commit 76fd0e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_pytest/outcomes.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def importorskip(
reason = f"could not import {modname!r}: {exc}"
skipped = Skipped(reason, allow_module_level=True)

Check warning on line 270 in src/_pytest/outcomes.py

View check run for this annotation

Codecov / codecov/patch

src/_pytest/outcomes.py#L270

Added line #L270 was not covered by tests

if warn_on_import_error and not issubclass(exc, ModuleNotFoundError):
if warn_on_import_error and not isinstance(exc, ModuleNotFoundError):
lines = [

Check warning on line 273 in src/_pytest/outcomes.py

View check run for this annotation

Codecov / codecov/patch

src/_pytest/outcomes.py#L273

Added line #L273 was not covered by tests
"",
f"Module '{modname}' was found, but when imported by pytest it raised:",
Expand Down

0 comments on commit 76fd0e5

Please sign in to comment.