Message125338
| Author |
nadeem.vawda |
| Recipients |
Rhamphoryncus, collinwinter, gregory.p.smith, jyasskin, nadeem.vawda, rnk |
| Date |
2011年01月04日.16:30:45 |
| SpamBayes Score |
0.0001811188 |
| Marked as misclassified |
No |
| Message-id |
<1294158705.46.0.068361600421.issue6643@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
r87710 introduces an AttributeError in test_thread's TestForkInThread test case. If os.fork() is called from a thread created by the _thread module, threading._after_fork() will get a _DummyThread (with no _block attribute) as the current thread.
I've attached a patch that checks whether the thread has a _block attribute before trying to reinitialize it. |
|