Author nadeem.vawda
Recipients Rhamphoryncus, collinwinter, gregory.p.smith, jyasskin, nadeem.vawda, rnk
Date 2011-01-04.16:30:45
SpamBayes Score 0.000181119
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.
History
Date User Action Args
2011-01-04 16:31:45nadeem.vawdasetrecipients: + nadeem.vawda, collinwinter, gregory.p.smith, Rhamphoryncus, jyasskin, rnk
2011-01-04 16:31:45nadeem.vawdasetmessageid: <1294158705.46.0.068361600421.issue6643@psf.upfronthosting.co.za>
2011-01-04 16:30:45nadeem.vawdalinkissue6643 messages
2011-01-04 16:30:45nadeem.vawdacreate