Skip to content

Commit 93ee5c1

Browse files
committed
Add fs_module to conftest.py for plugin tests
- remove installing pyfakefs from CI - fixes #687
1 parent d457a3b commit 93ee5c1

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ jobs:
7979
run: |
8080
pip install wheel
8181
pip install -r requirements.txt
82-
pip install .
8382
- name: Run unit tests without extra packages as non-root user
8483
run: |
8584
export TEST_REAL_FS=1

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ The released versions correspond to PyPi releases.
77
* added support for `opener` argument in `open`, which is used in `tempfile`
88
in Python 3.11 since beta 4 (see [#686](../../issues/686))
99

10+
### Infrastructure
11+
* make sure tests run without `pyfakefs` installed as a package
12+
(see [#687](../../issues/687))
13+
1014
## [Version 4.6.0](https://pypi.python.org/pypi/pyfakefs/4.6.0) (2022-07-12)
1115
Adds support for Python 3.11, removes support for Python 3.6, changes root
1216
path behavior under Windows.

pyfakefs/pytest_tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from pyfakefs.fake_filesystem_unittest import Patcher
2121

2222
# import the fs fixture to be visible if pyfakefs is not installed
23-
from pyfakefs.pytest_plugin import fs # noqa: F401
23+
from pyfakefs.pytest_plugin import fs, fs_module # noqa: F401
2424

2525
from pyfakefs.pytest_tests import example # noqa: E402
2626

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pytest>=2.8.6
1+
pytest>=3.0.0

0 commit comments

Comments
 (0)