bpo-35797: Fix default executable used by the multiprocessing module by zooba · Pull Request #11676 · python/cpython
Expand Up
@@ -306,6 +306,19 @@ def test_unicode_in_batch_file(self):
)
self.assertEqual(out.strip(), '0')
def test_multiprocessing(self): """ Test that the multiprocessing is able to spawn. """ rmtree(self.env_dir) self.run_with_capture(venv.create, self.env_dir) envpy = os.path.join(os.path.realpath(self.env_dir), self.bindir, self.exe) out, err = check_output([envpy, '-c', 'from multiprocessing import Pool; ' + 'print(Pool(1).apply_async("Python".lower).get(3))']) self.assertEqual(out.strip(), "python".encode())
@skipInVenv class EnsurePipTest(BaseTest): """Test venv module installation of pip.""" Expand Down
def test_multiprocessing(self): """ Test that the multiprocessing is able to spawn. """ rmtree(self.env_dir) self.run_with_capture(venv.create, self.env_dir) envpy = os.path.join(os.path.realpath(self.env_dir), self.bindir, self.exe) out, err = check_output([envpy, '-c', 'from multiprocessing import Pool; ' + 'print(Pool(1).apply_async("Python".lower).get(3))']) self.assertEqual(out.strip(), "python".encode())
@skipInVenv class EnsurePipTest(BaseTest): """Test venv module installation of pip.""" Expand Down