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

Class BaseTestCase

Lib/test/test_bdb.py:580–588  ·  view source on GitHub ↗

Base class for all tests.

Source from the content-addressed store, hash-verified

578 lno = 2
579
580class BaseTestCase(unittest.TestCase):
581 """Base class for all tests."""
582
583 dry_run = dry_run
584
585 def fail(self, msg=None):
586 # Override fail() to use 'raise from None' to avoid repetition of the
587 # error message and traceback.
588 raise self.failureException(msg) from None
589
590class StateTestCase(BaseTestCase):
591 """Test the step, next, return, until and quit 'set_' methods."""

Callers 1

run_testFunction · 0.70

Calls

no outgoing calls

Tested by 1

run_testFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…