Skip to content

Fix `ImportError` crash when using `--import-mode=importlib` (#13053)

Codecov / codecov/patch failed Dec 12, 2024 in 1s

0.00% of diff hit (target 96.80%)

View this Pull Request on Codecov

0.00% of diff hit (target 96.80%)

Annotations

Check warning on line 697 in src/_pytest/pathlib.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/_pytest/pathlib.py#L697

Added line #L697 was not covered by tests

Check warning on line 701 in src/_pytest/pathlib.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/_pytest/pathlib.py#L701

Added line #L701 was not covered by tests

Check warning on line 703 in src/_pytest/pathlib.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/_pytest/pathlib.py#L703

Added line #L703 was not covered by tests

Check warning on line 705 in src/_pytest/pathlib.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/_pytest/pathlib.py#L705

Added line #L705 was not covered by tests