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

Method setUp

Lib/test/test_trace.py:570–573  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

568
569class TestTrace(unittest.TestCase):
570 def setUp(self):
571 self.addCleanup(sys.settrace, sys.gettrace())
572 self.tracer = Trace(count=0, trace=1)
573 self.filemod = my_file_and_modname()
574
575 def test_no_source_file(self):
576 filename = "<unknown>"

Callers

nothing calls this directly

Calls 3

TraceClass · 0.90
my_file_and_modnameFunction · 0.85
addCleanupMethod · 0.80

Tested by

no test coverage detected