kevlened / pytest-parallel

A pytest plugin for parallel and concurrent testing
https://github.com/browsertron/pytest-parallel/issues/104#issuecomment-1293941066
MIT License
313 stars 59 forks source link

Pytest-parallel is failing to run #125

Open stalkerz379 opened 1 year ago

stalkerz379 commented 1 year ago

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