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

Method checkError

Lib/test/test_regrtest.py:82–85  ·  view source on GitHub ↗
(self, args, msg)

Source from the content-addressed store, hash-verified

80 return cmdline._parse_args(args)
81
82 def checkError(self, args, msg):
83 with support.captured_stderr() as err, self.assertRaises(SystemExit):
84 self.parse_args(args)
85 self.assertIn(msg, err.getvalue())
86
87 def test_help(self):
88 for opt in '-h', '--help':

Callers 15

test_timeoutMethod · 0.95
test_startMethod · 0.95
test_randseedMethod · 0.95
test_fromfileMethod · 0.95
test_singleMethod · 0.95
test_matchMethod · 0.95
test_failfastMethod · 0.95
test_useMethod · 0.95
test_memlimitMethod · 0.95
test_testdirMethod · 0.95
test_huntrleaksMethod · 0.95
test_multiprocessMethod · 0.95

Calls 4

parse_argsMethod · 0.95
assertInMethod · 0.80
assertRaisesMethod · 0.45
getvalueMethod · 0.45

Tested by

no test coverage detected