pytest-dev / pyfakefs

Provides a fake file system that mocks the Python file system modules.
https://pytest-pyfakefs.readthedocs.io
Apache License 2.0
651 stars 91 forks source link

Performance: do not reload tempfile #1076

Closed mrbean-bremen closed 1 month ago

mrbean-bremen commented 1 month ago

Reload takes between 0.5 and 1 ms, which is a substantial part of the test setup, as no caching can be done here. This made the setup under Posix slower than under Windows.

Tasks