pytest-dev / pyfakefs

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

Align Python version testing in tox with CI #1008

Closed kurtmckee closed 2 months ago

kurtmckee commented 2 months ago

Describe the changes

This change aligns the Python versions that are tested by tox with those tested by CI. In particular:

I attempted to run the tox environments in parallel (using tox p or tox run-parallel) and discovered that files and symlinks are written to the local directory, causing failures in the parallel test suites due to filesystem access conflicts. This PR doesn't address that issue, which likely requires establishing temp directories at test startup.

Tasks

mrbean-bremen commented 2 months ago

discovered that files and symlinks are written to the local directory

That should not happen by default (e.g. if TEST_REAL_FS is not set), as far as I can see (I may overlook something, though). It could be a bug... Can you elaborate on this (maybe in a separate issue)?