]> granicus.if.org Git - python/commit
Kill a race in test_threading in which the exception info in a thread finishing
authorJeffrey Yasskin <jyasskin@gmail.com>
Fri, 28 Mar 2008 04:11:18 +0000 (04:11 +0000)
committerJeffrey Yasskin <jyasskin@gmail.com>
Fri, 28 Mar 2008 04:11:18 +0000 (04:11 +0000)
commit8b9091fba07b813b7486ef8fef279f2bf950570b
tree7dd25f52ebbe7c8276901a03bad5d651e693845c
parent7db15fe9d9f42b73b8dad4d13965259de2eea09f
Kill a race in test_threading in which the exception info in a thread finishing
up after it was joined had a traceback pointing to that thread's (deleted)
target attribute, while the test was trying to check that the target was
destroyed. Big thanks to Antoine Pitrou for diagnosing the race and pointing
out sys.exc_clear() to kill the exception early. This fixes issue 2496.
Lib/test/test_threading.py
Lib/threading.py