MCPcopy Index your code
hub / github.com/python/cpython / debug

Method debug

Lib/unittest/case.py:725–740  ·  view source on GitHub ↗

Run the test without collecting errors in a TestResult

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected