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

Method test_main_bad_switch

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

Source from the content-addressed store, hash-verified

253 return s.getvalue()
254
255 def test_main_bad_switch(self):
256 s = self.run_main(switches=['--bad-switch'])
257 self.assertEqual(s, dedent("""\
258 option --bad-switch not recognized
259 use -h/--help for command line help
260 """))
261
262 def test_main_seconds(self):
263 s = self.run_main(seconds_per_increment=5.5)

Callers

nothing calls this directly

Calls 3

run_mainMethod · 0.95
dedentFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected