MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_multiprocessing_recursion

Method test_multiprocessing_recursion

Lib/test/test_venv.py:628–637  ·  view source on GitHub ↗

Test that the multiprocessing is able to spawn itself

(self)

Source from the content-addressed store, hash-verified

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