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

Method test_runctx

Lib/test/test_profile.py:104–109  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

102 self.assertIn("Ordered by: internal time, standard name", f.getvalue())
103
104 def test_runctx(self):
105 with silent():
106 self.profilermodule.runctx("testfunc()", globals(), locals())
107 self.profilermodule.runctx("testfunc()", globals(), locals(),
108 filename=TESTFN)
109 self.assertTrue(os.path.exists(TESTFN))
110
111 def test_run_profile_as_module(self):
112 # Test that -m switch needs an argument

Callers

nothing calls this directly

Calls 4

silentFunction · 0.85
assertTrueMethod · 0.80
runctxMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected