Home - Summaries: (main) : (py3.11) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

test_venv:test_multiprocessing

tmpdir = local('D:\\SystemTemp\\pytest-of-matti\\pytest-20\\test_multiprocessing0')

    def test_multiprocessing(tmpdir):
        # issue 4876
        subprocess.run([sys.executable, '-mvenv', str(tmpdir / 'venv')])
        # 'bin' or 'Script'
        path = os.path.split(sysconfig.get_path('scripts'))[-1]
        exe = str(tmpdir / 'venv' / path / os.path.split(sys.executable)[-1])
        result = subprocess.run([exe, '-c',
                                 'from multiprocessing import Pool; ' +
                                 'print(Pool(1).apply_async(eval, ("__import__(\'sys\').executable",)).get(3))'],
                                capture_output=True)
>       result.check_returncode()

..\build\extra_tests\test_venv.py:25: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = CompletedProcess(args=['D:\\SystemTemp\\pytest-of-matti\\pytest-20\\test_multiprocessing0\\venv\\Scripts\\pypy3.exe', ...ionError:\ndebug:  operror-type: AttributeError\ndebug:  operror-value: module 'sys' has no attribute 'base_prefix'\n")

    def check_returncode(self):
        """Raise CalledProcessError if the exit code is non-zero."""
        if self.returncode:
>           raise CalledProcessError(self.returncode, self.args, self.stdout,
                                     self.stderr)
E           subprocess.CalledProcessError: Command '['D:\\SystemTemp\\pytest-of-matti\\pytest-20\\test_multiprocessing0\\venv\\Scripts\\pypy3.exe', '-c', 'from multiprocessing import Pool; print(Pool(1).apply_async(eval, ("__import__(\'sys\').executable",)).get(3))']' returned non-zero exit status 1.

..\build\lib-python\3\subprocess.py:502: CalledProcessError
builder: pypy-c-jit-win-x86-64 build #2418+
test: test_venv:test_multiprocessing