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

Method test_wrapped_exception

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

Source from the content-addressed store, hash-verified

3212
3213 @warnings_helper.ignore_fork_in_thread_deprecation_warnings()
3214 def test_wrapped_exception(self):
3215 # Issue #20980: Should not wrap exception when using thread pool
3216 with self.Pool(1) as p:
3217 with self.assertRaises(RuntimeError):
3218 p.apply(self._test_wrapped_exception)
3219 p.join()
3220
3221 @warnings_helper.ignore_fork_in_thread_deprecation_warnings()
3222 def test_map_no_failfast(self):

Callers

nothing calls this directly

Calls 4

PoolMethod · 0.45
assertRaisesMethod · 0.45
applyMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected