]> granicus.if.org Git - python/commit
Fix possible "file already exists" error when running the tests in parallel.
authorAntoine Pitrou <solipsis@pitrou.net>
Sat, 16 Apr 2011 16:53:59 +0000 (18:53 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Sat, 16 Apr 2011 16:53:59 +0000 (18:53 +0200)
commitee4293400cff1d5f9a7a6dd8e9aaa6ba6623e348
tree579ae44f65b5632aeb744f56446f0dfadce0c1c3
parent1d827ff43d6340db759ddc08c6ab1efa3e1886d1
Fix possible "file already exists" error when running the tests in parallel.

This is a perfect example of LBYL going wrong: that code could be executed
by several workers in parallel, and os.mkdir() attempted on the same
path by multiple processes.
Lib/test/regrtest.py
Misc/NEWS