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

Method test_failfast

Lib/test/test_regrtest.py:269–276  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

267 [('match', False), ('matchfile1', False), ('matchfile2', False)])
268
269 def test_failfast(self):
270 for opt in '-G', '--failfast':
271 with self.subTest(opt=opt):
272 ns = self.parse_args([opt, '-v'])
273 self.assertTrue(ns.failfast)
274 ns = self.parse_args([opt, '-W'])
275 self.assertTrue(ns.failfast)
276 self.checkError([opt], '-G/--failfast needs either -v or -W')
277
278 def test_use(self):
279 for opt in '-u', '--use':

Callers

nothing calls this directly

Calls 4

parse_argsMethod · 0.95
checkErrorMethod · 0.95
assertTrueMethod · 0.80
subTestMethod · 0.45

Tested by

no test coverage detected