Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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