Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Pytest-parallel is failing to run #125

Open
stalkerz379 opened this issue Feb 17, 2023 · 0 comments
Open

Pytest-parallel is failing to run #125

stalkerz379 opened this issue Feb 17, 2023 · 0 comments

Comments

@stalkerz379
Copy link

Platform - Window 10
Python - 3.10.7
Pytest - 7.2.1

plugins: parallel-0.1.1
collected 4 items
pytest-parallel: 1 worker (process), 1 test per worker (thread)

INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "C:\Users\myuser\PycharmProjects\project_parallel_plugin_test\venv\lib\site-packages_pytest\main.py", line 270, in wrap_session
INTERNALERROR> session.exitstatus = doit(config, session) or 0
INTERNALERROR> File "C:\Users\Ymyuser\PycharmProjects\project_parallel_plugin_test\venv\lib\site-packages_pytest\main.py", line 324, in _main
INTERNALERROR> config.hook.pytest_runtestloop(session=session)
INTERNALERROR> File "C:\Users\myuser\PycharmProjects\project_parallel_plugin_test\venv\lib\site-packages\pluggy_hooks.py", line 265, in call
INTERNALERROR> return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
INTERNALERROR> File "C:\Users\myuser\PycharmProjects\project_parallel_plugin_test\venv\lib\site-packages\pluggy_manager.py", line 80, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> File "C:\Users\myuser\PycharmProjects\project_parallel_plugin_test\venv\lib\site-packages\pluggy_callers.py", line 60, in _multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "C:\Users\myuser\PycharmProjects\project_parallel_plugin_test\venv\lib\site-packages\pluggy_result.py", line 60, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "C:\Users\myuser\PycharmProjects\project_parallel_plugin_test\venv\lib\site-packages\pluggy_callers.py", line 39, in multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "C:\Users\Ymyuser\PycharmProjects\project_parallel_plugin_test\venv\lib\site-packages\pytest_parallel_init
.py", line 315, in pytest_runtestloop
INTERNALERROR> process.start()
INTERNALERROR> File "C:\Users\myuser\AppData\Local\Programs\Python\Python310\lib\multiprocessing\process.py", line 121, in start
INTERNALERROR> self._popen = self._Popen(self)
INTERNALERROR> File "C:\Users\myuser\AppData\Local\Programs\Python\Python310\lib\multiprocessing\context.py", line 224, in _Popen
INTERNALERROR> return _default_context.get_context().Process._Popen(process_obj)
INTERNALERROR> File "C:\Users\myuser\AppData\Local\Programs\Python\Python310\lib\multiprocessing\context.py", line 336, in _Popen
INTERNALERROR> return Popen(process_obj)
INTERNALERROR> File "C:\Users\myuser\AppData\Local\Programs\Python\Python310\lib\multiprocessing\popen_spawn_win32.py", line 93, in init
INTERNALERROR> reduction.dump(process_obj, to_child)
INTERNALERROR> File "C:\Users\myuser\AppData\Local\Programs\Python\Python310\lib\multiprocessing\reduction.py", line 60, in dump
INTERNALERROR> ForkingPickler(file, protocol).dump(obj)
INTERNALERROR> AttributeError: Can't pickle local object 'ArgumentParser.init..identity'

============================ no tests ran in 0.05s ============================
Exception in thread Thread-1 (process_responses):
Traceback (most recent call last):
File "C:\Users\myuser\AppData\Local\Programs\Python\Python310\lib\multiprocessing\connection.py", line 317, in _recv_bytes
nread, err = ov.GetOverlappedResult(True)
BrokenPipeError: [WinError 109] The pipe has been ended

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\myuser\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner
self.run()
File "C:\Users\myuser\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run
self._target(*self._args, **self.kwargs)
File "C:\Users\myuser\PycharmProjects\project_parallel_plugin_test\venv\lib\site-packages\pytest_parallel_init
.py", line 360, in process_responses
event_name, kwargs = queue.get()
File "", line 2, in get
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\myuser\AppData\Local\Programs\Python\Python310\lib\multiprocessing\spawn.py", line 107, in spawn_main
new_handle = reduction.duplicate(pipe_handle,
File "C:\Users\myuser\AppData\Local\Programs\Python\Python310\lib\multiprocessing\reduction.py", line 79, in duplicate
return _winapi.DuplicateHandle(
PermissionError: [WinError 5] Access is denied

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant