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

Method test_make_pool

Lib/test/_test_multiprocessing.py:3108–3121  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3106
3107 @warnings_helper.ignore_fork_in_thread_deprecation_warnings()
3108 def test_make_pool(self):
3109 expected_error = (RemoteError if self.TYPE == 'manager'
3110 else ValueError)
3111
3112 self.assertRaises(expected_error, self.Pool, -1)
3113 self.assertRaises(expected_error, self.Pool, 0)
3114
3115 if self.TYPE != 'manager':
3116 p = self.Pool(3)
3117 try:
3118 self.assertEqual(3, len(p._pool))
3119 finally:
3120 p.close()
3121 p.join()
3122
3123 @warnings_helper.ignore_fork_in_thread_deprecation_warnings()
3124 def test_terminate(self):

Callers

nothing calls this directly

Calls 5

closeMethod · 0.95
joinMethod · 0.95
assertRaisesMethod · 0.45
PoolMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected