Ticket #5554: 5554.patch

File 5554.patch, 1.2 KB (added by moijes12, 4 years ago)
  • twisted/topfiles/5554.removal

    === added file 'twisted/topfiles/5554.removal'
     
     1twisted.trial.runner.DocTestCase is removed.
  • twisted/trial/runner.py

    === modified file 'twisted/trial/runner.py'
     
    1111__all__ = [
    1212    'suiteVisit', 'TestSuite',
    1313
    14     'DestructiveTestSuite', 'DocTestCase', 'DryRunVisitor',
     14    'DestructiveTestSuite', 'DryRunVisitor',
    1515    'ErrorHolder', 'LoggedSuite', 'PyUnitTestCase',
    1616    'TestHolder', 'TestLoader', 'TrialRunner', 'TrialSuite',
    1717
     
    239239
    240240
    241241
    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 
    258242class TrialSuite(TestSuite):
    259243    """
    260244    Suite to wrap around every single test in a C{trial} run. Used internally