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

Method setUp

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

Source from the content-addressed store, hash-verified

237class TestRunExecCounts(unittest.TestCase):
238 """A simple sanity test of line-counting, via runctx (exec)"""
239 def setUp(self):
240 self.my_py_filename = fix_ext_py(__file__)
241 self.addCleanup(sys.settrace, sys.gettrace())
242
243 @unittest.skipIf(os.environ.get('PYTHON_UOPS_OPTIMIZE') == '0',
244 "Line counts differ when JIT optimizer is disabled")

Callers

nothing calls this directly

Calls 2

fix_ext_pyFunction · 0.85
addCleanupMethod · 0.80

Tested by

no test coverage detected