We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72940b9 commit d81cd56Copy full SHA for d81cd56
CHANGES.md
@@ -3,6 +3,10 @@ The released versions correspond to PyPi releases.
3
4
## Unreleased
5
6
+### Fixes
7
+* only skip `_pytest.pathlib` in pytest versions where it is actually present
8
+ (see [#669](../../issues/669))
9
+
10
## [Version 4.5.5](https://pypi.python.org/pypi/pyfakefs/4.5.5) (2022-02-14)
11
Bugfix release, needed for compatibility with pytest 7.0.
12
pyfakefs/pytest_plugin.py
@@ -16,7 +16,8 @@ def my_fakefs_test(fs):
16
17
Patcher.SKIPMODULES.add(py)
18
Patcher.SKIPMODULES.add(pytest)
19
-Patcher.SKIPMODULES.add(_pytest.pathlib)
+if hasattr(_pytest, "pathlib"):
20
+ Patcher.SKIPMODULES.add(_pytest.pathlib)
21
22
23
@pytest.fixture
0 commit comments