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

Method test_run

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

Source from the content-addressed store, hash-verified

91 "Profiling {0!r} didn't report max:\n{1}".format(stmt, res))
92
93 def test_run(self):
94 with silent():
95 self.profilermodule.run("int('1')")
96 self.profilermodule.run("int('1')", filename=TESTFN)
97 self.assertTrue(os.path.exists(TESTFN))
98
99 def test_run_with_sort_by_values(self):
100 with redirect_stdout(StringIO()) as f:

Callers

nothing calls this directly

Calls 4

silentFunction · 0.85
assertTrueMethod · 0.80
runMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected