MCPcopy Index your code
hub / github.com/RustPython/RustPython / debug

Method debug

Lib/unittest/case.py:732–747  ·  view source on GitHub ↗

Run the test without collecting errors in a TestResult

(self)

Source from the content-addressed store, hash-verified

730 return self.run(*args, **kwds)
731
732 def debug(self):
733 """Run the test without collecting errors in a TestResult"""
734 testMethod = getattr(self, self._testMethodName)
735 if (getattr(self.__class__, "__unittest_skip__", False) or
736 getattr(testMethod, "__unittest_skip__", False)):
737 # If the class or method was skipped.
738 skip_why = (getattr(self.__class__, '__unittest_skip_why__', '')
739 or getattr(testMethod, '__unittest_skip_why__', ''))
740 raise SkipTest(skip_why)
741
742 self._callSetUp()
743 self._callTestMethod(testMethod)
744 self._callTearDown()
745 while self._cleanups:
746 function, args, kwargs = self._cleanups.pop()
747 self._callCleanup(function, *args, **kwargs)
748
749 def skipTest(self, reason):
750 """Skip this test."""

Callers

nothing calls this directly

Calls 7

_callSetUpMethod · 0.95
_callTestMethodMethod · 0.95
_callTearDownMethod · 0.95
_callCleanupMethod · 0.95
getattrFunction · 0.85
SkipTestClass · 0.85
popMethod · 0.45

Tested by

no test coverage detected