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

Method setUp

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

Source from the content-addressed store, hash-verified

267class TestFuncs(unittest.TestCase):
268 """White-box testing of funcs tracing"""
269 def setUp(self):
270 self.addCleanup(sys.settrace, sys.gettrace())
271 self.tracer = Trace(count=0, trace=0, countfuncs=1)
272 self.filemod = my_file_and_modname()
273 self._saved_tracefunc = sys.gettrace()
274
275 def tearDown(self):
276 if self._saved_tracefunc is not None:

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