]> granicus.if.org Git - python/commit
Speed test_threading up from 14s to .5s, and avoid a deadlock on certain
authorJeffrey Yasskin <jyasskin@gmail.com>
Fri, 21 Mar 2008 18:48:04 +0000 (18:48 +0000)
committerJeffrey Yasskin <jyasskin@gmail.com>
Fri, 21 Mar 2008 18:48:04 +0000 (18:48 +0000)
commit510eab5965c8a4d7c8706ca63ffa8c0e7d32454e
tree90d192da6dcecf935c81be966371a498dc57eada
parent413f588a368a0bd612aed38c835eb4d8a0c1aaef
Speed test_threading up from 14s to .5s, and avoid a deadlock on certain
failures. The test for enumerate-after-join is now a little less rigorous, but
the bug it references says the error happened in the first couple iterations,
so 100 iterations should still be enough.

cProfile was useful for identifying the slow tests here.
Lib/test/test_threading.py