You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The solution implemented in #3982 is not robust - in case test execution is interrupted while a cache element is being written, the .pytest_cache directory will exist and be non-empty, but will not contain .gitignore.
Because of this check.gitignore ends up never being created.
The text was updated successfully, but these errors were encountered:
Creating and initializing the cache directory is interruptible; this
avoids a pathological case where interrupting a cache write can cause
the cache directory to never be properly initialized with its supporting
files.
Unify `Cache.mkdir` with `Cache.set` while I'm here so the former also
properly initializes the cache directory.
Closespytest-dev#12167.
The solution implemented in #3982 is not robust - in case test execution is interrupted while a cache element is being written, the
.pytest_cache
directory will exist and be non-empty, but will not contain.gitignore
.Because of this check
.gitignore
ends up never being created.The text was updated successfully, but these errors were encountered: