@@ -190,8 +190,7 @@ def __init__(
190190 optionflags : int = 0 ,
191191 continue_on_failure : bool = True ,
192192 ) -> None :
193- doctest .DebugRunner .__init__ (
194- self , checker = checker , verbose = verbose , optionflags = optionflags
193+ super ().__init__ (checker = checker , verbose = verbose , optionflags = optionflags
195194 )
196195 self .continue_on_failure = continue_on_failure
197196
@@ -513,8 +512,7 @@ def _find_lineno(self, obj, source_lines):
513512 if isinstance (obj , property ):
514513 obj = getattr (obj , "fget" , obj )
515514 # Type ignored because this is a private function.
516- return doctest .DocTestFinder ._find_lineno ( # type: ignore
517- self ,
515+ return super ()._find_lineno (
518516 obj ,
519517 source_lines ,
520518 )
@@ -527,8 +525,7 @@ def _find(
527525 with _patch_unwrap_mock_aware ():
528526
529527 # Type ignored because this is a private function.
530- doctest .DocTestFinder ._find ( # type: ignore
531- self , tests , obj , name , module , source_lines , globs , seen
528+ super ()._find (tests , obj , name , module , source_lines , globs , seen
532529 )
533530
534531 if self .path .name == "conftest.py" :
@@ -613,7 +610,7 @@ class LiteralsOutputChecker(doctest.OutputChecker):
613610 )
614611
615612 def check_output (self , want : str , got : str , optionflags : int ) -> bool :
616- if doctest . OutputChecker . check_output (self , want , got , optionflags ):
613+ if super (). check_output (want , got , optionflags ):
617614 return True
618615
619616 allow_unicode = optionflags & _get_allow_unicode_flag ()
@@ -637,7 +634,7 @@ def remove_prefixes(regex: Pattern[str], txt: str) -> str:
637634 if allow_number :
638635 got = self ._remove_unwanted_precision (want , got )
639636
640- return doctest . OutputChecker . check_output (self , want , got , optionflags )
637+ return super (). check_output (want , got , optionflags )
641638
642639 def _remove_unwanted_precision (self , want : str , got : str ) -> str :
643640 wants = list (self ._number_re .finditer (want ))
0 commit comments