Beispiel #1
0
 def _prunetraceback(
         self, excinfo: _pytest._code.ExceptionInfo[BaseException]) -> None:
     Function._prunetraceback(self, excinfo)
     traceback = excinfo.traceback.filter(
         lambda x: not x.frame.f_globals.get("__unittest"))
     if traceback:
         excinfo.traceback = traceback
Beispiel #2
0
 def _prunetraceback(self, excinfo):
     Function._prunetraceback(self, excinfo)
     traceback = excinfo.traceback.filter(
         lambda x: not x.frame.f_globals.get("__unittest")
     )
     if traceback:
         excinfo.traceback = traceback
Beispiel #3
0
 def _prunetraceback(self, excinfo):
     Function._prunetraceback(self, excinfo)
     traceback = excinfo.traceback.filter(
         lambda x: not x.frame.f_globals.get("__unittest")
     )
     if traceback:
         excinfo.traceback = traceback