Trial's test runner manages to break resource sharing in OptimisingTestSuite
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Twisted |
New
|
Unknown
|
|||
testresources |
Invalid
|
Critical
|
Unassigned |
Bug Description
This bug is due to evilness in Twisted's TrialRunnner (tested using twisted 8.1.0).
Before passing control to the test suite, TrialRunner.
None of the ResourcedTestCase tests implement this interface, so they get replaced by a _PyUnitTestCase
The upshot is that OptimisingTestSuite has no information to work with so can't sort tests in a meaningful fashion and can't share resources between tests.
It would be nice if testresources could work with such a test runner, since the trial test runner is required for some twisted related tests. Given the evilness of what it is doing, I'd understand if it can't be worked around though.
Changed in twisted: | |
status: | Unknown → New |
I think this isn't a testresources bug per se; I'd be inclined to fix it by teaching the decorator to pass through unknown attribute lookups to the decorated objects. JML, do you concur?