@@ -334,8 +334,7 @@ def __init__(self, checker=None, verbose=None, optionflags=None, config=None):
334
334
self .nameerror_after_exception = config .nameerror_after_exception
335
335
if optionflags is None :
336
336
optionflags = config .optionflags
337
- doctest .DocTestRunner .__init__ (self , checker = checker , verbose = verbose ,
338
- optionflags = optionflags )
337
+ super ().__init__ (checker = checker , verbose = verbose , optionflags = optionflags )
339
338
340
339
def _report_item_name (self , out , item_name , new_line = False ):
341
340
if item_name is not None :
@@ -344,12 +343,12 @@ def _report_item_name(self, out, item_name, new_line=False):
344
343
out ("\n " )
345
344
346
345
def report_start (self , out , test , example ):
347
- return doctest . DocTestRunner . report_start (self , out , test , example )
346
+ return super (). report_start (out , test , example )
348
347
349
348
def report_success (self , out , test , example , got ):
350
349
if self ._verbose :
351
350
self ._report_item_name (out , test .name , new_line = True )
352
- return doctest . DocTestRunner . report_success (self , out , test , example , got )
351
+ return super (). report_success (out , test , example , got )
353
352
354
353
def report_unexpected_exception (self , out , test , example , exc_info ):
355
354
if not self .nameerror_after_exception :
@@ -367,8 +366,7 @@ def report_unexpected_exception(self, out, test, example, exc_info):
367
366
368
367
def report_failure (self , out , test , example , got ):
369
368
self ._report_item_name (out , test .name )
370
- return doctest .DocTestRunner .report_failure (self , out , test ,
371
- example , got )
369
+ return super ().report_failure (out , test , example , got )
372
370
373
371
def get_history (self ):
374
372
"""Return a dict with names of items which were run.
0 commit comments