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

Method test_multiprocess

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

Source from the content-addressed store, hash-verified

366 self.checkError([opt, '6:foo'], 'invalid huntrleaks value')
367
368 def test_multiprocess(self):
369 for opt in '-j', '--multiprocess':
370 with self.subTest(opt=opt):
371 ns = self.parse_args([opt, '2'])
372 self.assertEqual(ns.use_mp, 2)
373 self.checkError([opt], 'expected one argument')
374 self.checkError([opt, 'foo'], 'invalid int value')
375
376 def test_coverage_sequential(self):
377 for opt in '-T', '--coverage':

Callers

nothing calls this directly

Calls 4

parse_argsMethod · 0.95
checkErrorMethod · 0.95
subTestMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected