Ticket #1832 defect closed fixed
test_threads.ReactorThreadsTestCase is very fragile
|Reported by:||therve||Owned by:|
Description (last modified by therve) (diff)
While debugging with threads, and looking at #1115, I got some problems with test_threads.ReactorThreadsTestCase: 2 test methods can't be run alone (testCallInThread and testWakerOverflow), because reactor doesn't seem to be initialized like it should be.
In fact, the tests run well by luck due to the order chosen by trial.
- trial twisted.test.test_threads.ReactorThreadsTestCase.testCallInThread
- trial twisted.test.test_threads.ReactorThreadsTestCase.testWakerOverflow
- Rename testCallFromThread to testCallInThread and testCallInThread to testCallFromThread, and the test suite doesn't pass anymore (trial twisted.test.test_threads.ReactorThreadsTestCase)
I didn't find an easy way to correct this (if this isn't a known problem).