test_threads.ReactorThreadsTestCase is very fragile
|Reported by:||therve||Owned by:|
|Cc:||therve, Jean-Paul Calderone||Branch:|
Description (last modified by )
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).
Change History (12)
comment:4 Changed 10 years ago by
|Cc:||Jean-Paul Calderone added|
|Keywords:||review added; test_threads removed|
|Priority:||normal → highest|
comment:6 Changed 10 years ago by
|Owner:||changed from therve to Jean-Paul Calderone|
comment:7 Changed 10 years ago by
|Owner:||changed from Jean-Paul Calderone to therve|