mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Guido found a brand new race in tempfile on Linux, due to Linux changing
pid across threads (but in that case, it's still the same process, and so still sharing the "template" cache in tempfile.py). Repaired that, and added a new std test. On Linux, someone please run that standalone with more files and/or more threads; e.g., python lib/test/test_threadedtempfile.py -f 1000 -t 10 to run with 10 threads each creating (and deleting) 1000 temp files.
This commit is contained in:
parent
d7b68021ce
commit
9fadfb0d1d
3 changed files with 121 additions and 16 deletions
5
Lib/test/output/test_threadedtempfile
Normal file
5
Lib/test/output/test_threadedtempfile
Normal file
|
@ -0,0 +1,5 @@
|
|||
test_threadedtempfile
|
||||
Creating
|
||||
Starting
|
||||
Reaping
|
||||
Done: errors 0 ok 1000
|
Loading…
Add table
Add a link
Reference in a new issue