[issue2496] test_no_refcycle_through_target sometimes fails in test_threading

Jeffrey Yasskin report at bugs.python.org
Fri Mar 28 04:36:56 CET 2008


Jeffrey Yasskin <jyasskin at gmail.com> added the comment:

I think I've confirmed your diagnosis. If I add a _sleep(.01) to
Thread.__bootstrap_inner() just after the call to self.__stop(), the
test fails reliably. Very good catch! Given that, I think just adding a
short sleep to the test before counting references will fix it nearly
every time, but I'd like to kill the race dead if we can.

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2496>
__________________________________


More information about the Python-bugs-list mailing list