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

Method __init__

Lib/test/test_bdb.py:420–425  ·  view source on GitHub ↗
(self, test_case, skip=None)

Source from the content-addressed store, hash-verified

418 """Provide a context for running a Tracer instance with a test case."""
419
420 def __init__(self, test_case, skip=None):
421 self.test_case = test_case
422 self.dry_run = test_case.dry_run
423 self.tracer = Tracer(test_case.expect_set, skip=skip,
424 dry_run=self.dry_run, test_case=test_case.id())
425 self._original_tracer = None
426
427 def __enter__(self):
428 # test_pdb does not reset Breakpoint class attributes on exit :-(

Callers

nothing calls this directly

Calls 2

TracerClass · 0.70
idMethod · 0.45

Tested by

no test coverage detected