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

Method test_multiprocessing_recursion

Lib/test/test_venv.py:630–639  ·  view source on GitHub ↗

Test that the multiprocessing is able to spawn itself

(self)

Source from the content-addressed store, hash-verified

628
629 @requireVenvCreate
630 def test_multiprocessing_recursion(self):
631 """
632 Test that the multiprocessing is able to spawn itself
633 """
634 skip_if_broken_multiprocessing_synchronize()
635
636 rmtree(self.env_dir)
637 self.run_with_capture(venv.create, self.env_dir)
638 script = os.path.join(TEST_HOME_DIR, '_test_venv_multiprocessing.py')
639 subprocess.check_call([self.envpy(real_env_dir=True), "-I", script])
640
641 @unittest.skipIf(os.name == 'nt', 'not relevant on Windows')
642 def test_deactivate_with_strict_bash_opts(self):

Callers

nothing calls this directly

Calls 5

rmtreeFunction · 0.90
run_with_captureMethod · 0.80
envpyMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected