[issue14474] mishandling of AttributeError in threads

Stefan Behnel report at bugs.python.org
Sun Apr 22 14:56:50 CEST 2012


Stefan Behnel <scoder at users.sourceforge.net> added the comment:

Could the

    while thread._count() > c:
        pass

in test_thread.py be changed to this? (as used in other places)

    while thread._count() > c:
        time.sleep(0.01)

It currently hangs in Cython because it doesn't free the GIL during the plain C loop. (While that might be considered a bug in Cython, it's not what this test is supposed to test for.)

----------
nosy: +scoder

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14474>
_______________________________________


More information about the Python-bugs-list mailing list