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

Method test_main_help

Lib/test/test_timeit.py:299–301  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

297
298 @unittest.skipIf(sys.flags.optimize >= 2, "need __doc__")
299 def test_main_help(self):
300 s = self.run_main(switches=['-h'])
301 self.assertEqual(s, timeit.__doc__)
302
303 def test_main_verbose(self):
304 s = self.run_main(switches=['-v'])

Callers

nothing calls this directly

Calls 2

run_mainMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected