-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pyfakefs 5.7.2 regression for NamedTemporaryFile #1098
Comments
Thanks! I will see if I can fix this or revert the related change (this was a performance improvement, not a fix or feature, so it would have no further impact). Obviously missing some tests here... |
For the record: I can confirm that the problem happens with Python 3.10 and 3.11, but not with 3.12 and 3.13 (tested under WSL). Under Windows it obviously doesn't happen, as the code in question is POSIX-specific (as was the change that broke it). |
- fixes pytest-dev#1098 (regression in version 5.7.2)
- fixes pytest-dev#1098 (regression in version 5.7.2)
Should be fixed in main branch now - can you please check? If it works for you, I will make another patch release. |
Nice I will try this out today and get back to you! |
Retested against a clone of origin/main installed. All looks good! |
Thanks for reporting! |
FYI: Just made a patch release with the fix. I was waiting for feedback for another fix, but decided to go ahead without that. |
Describe the bug
It seems that pause/resume functionallity somehow causes NamedTemporaryFile to be double deleted, leading to test failures. This happens in
pyfakefs==5.7.2
but notpyfakefs==5.7.1
.How To Reproduce
Example test:
With crash that looks like this:
Your environment
Note, I can also reproduce this on a linux VM.
The text was updated successfully, but these errors were encountered: