=== added file 'twisted/topfiles/5554.removal'
|
|
|
|
| | 1 | twisted.trial.runner.DocTestCase, deprecated in Twisted 8.0, has been removed. |
=== modified file 'twisted/trial/runner.py'
|
|
|
|
| 11 | 11 | __all__ = [ |
| 12 | 12 | 'suiteVisit', 'TestSuite', |
| 13 | 13 | |
| 14 | | 'DestructiveTestSuite', 'DocTestCase', 'DryRunVisitor', |
| | 14 | 'DestructiveTestSuite', 'DryRunVisitor', |
| 15 | 15 | 'ErrorHolder', 'LoggedSuite', 'PyUnitTestCase', |
| 16 | 16 | 'TestHolder', 'TestLoader', 'TrialRunner', 'TrialSuite', |
| 17 | 17 | |
| … |
… |
|
| 239 | 239 | |
| 240 | 240 | |
| 241 | 241 | |
| 242 | | class DocTestCase(PyUnitTestCase): |
| 243 | | """ |
| 244 | | DEPRECATED in Twisted 8.0. |
| 245 | | """ |
| 246 | | |
| 247 | | def id(self): |
| 248 | | """ |
| 249 | | In Python 2.4, doctests have correct id() behaviour. In Python 2.3, |
| 250 | | id() returns 'runit'. |
| 251 | | |
| 252 | | Here we override id() so that at least it will always contain the |
| 253 | | fully qualified Python name of the doctest. |
| 254 | | """ |
| 255 | | return self._test.shortDescription() |
| 256 | | |
| 257 | | |
| 258 | 242 | class TrialSuite(TestSuite): |
| 259 | 243 | """ |
| 260 | 244 | Suite to wrap around every single test in a C{trial} run. Used internally |