]> granicus.if.org Git - python/commit
One of the joys of having test_multiprocessing occasionally execute after
authorBrett Cannon <bcannon@gmail.com>
Sun, 22 Aug 2010 22:19:11 +0000 (22:19 +0000)
committerBrett Cannon <bcannon@gmail.com>
Sun, 22 Aug 2010 22:19:11 +0000 (22:19 +0000)
commitee6d64773b3137ef59272517ee0491dd7748d46d
tree65342764c9a6bef2c8bada061904915e9137835d
parent186335bd5cbe839348922aef3661e17247def27b
One of the joys of having test_multiprocessing occasionally execute after
test_importlib is that it discovers special little race conditions. For
instance, it turns out that importlib would throw an exception if two different
Python processes both tried to create the __pycache__ directory as one process
would succeed, causing the other process to fail as it didn't expect to get any
"help". So now importlib simply stays calm and just accepts someone else did
the work of creating the __pycache__ directory for it, moving on with life.

Closes issue #9572.
Lib/importlib/_bootstrap.py
Misc/NEWS