MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_main_bad_switch

Method test_main_bad_switch

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

Source from the content-addressed store, hash-verified

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