Python: 3.7.15
pytest 6.2.5
pytest-parallel 0.1.1
os: CentOS Linux release 7.9.2009 (Core). It's a virtual machine.
Before using pytest-parallel 0.1.1, I used v0.0.10, but no testcase get executed. Meanwhile I have an old environment with same os version and same python,pytest, pytest-parallel(0.0.10), it works fine(it's a physical server).
error with pytest-parallel 0.1.1
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/allure_pytest/listener.py", line 78, in pytest_runtest_protocol
INTERNALERROR> self.allure_logger.schedule_test(uuid, test_result)
INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/allure_commons/reporter.py", line 114, in schedule_test
INTERNALERROR> self._items[uuid] = test_case
INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/allure_commons/reporter.py", line 30, in setitem
INTERNALERROR> self.thread_context.setitem(key, value)
INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/allure_commons/reporter.py", line 21, in thread_context
INTERNALERROR> uuid, last_item = next(reversed(self._thread_context[self._init_thread].items()))
INTERNALERROR> StopIteration
INTERNALERROR>
INTERNALERROR> The above exception was the direct cause of the following exception:
INTERNALERROR>
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/pytest_parallel/init.py", line 93, in run
INTERNALERROR> run_test(self.session, item, None)
INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/pytest_parallel/init.py", line 54, in run_test
INTERNALERROR> item.ihook.pytest_runtest_protocol(item=item, nextitem=nextitem)
INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/pluggy/_hooks.py", line 265, in call
INTERNALERROR> return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/pluggy/_manager.py", line 80, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/pluggy/_callers.py", line 60, in _multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/pluggy/_result.py", line 60, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/pluggy/_callers.py", line 34, in _multicall
INTERNALERROR> next(gen) # first yield
INTERNALERROR> RuntimeError: generator raised StopIteration
INTERNALERROR>
INTERNALERROR> The above exception was the direct cause of the following exception:
INTERNALERROR>
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/_pytest/main.py", line 269, in wrap_session
INTERNALERROR> session.exitstatus = doit(config, session) or 0
INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/_pytest/main.py", line 323, in _main
INTERNALERROR> config.hook.pytest_runtestloop(session=session)
INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/pluggy/_hooks.py", line 265, in call
INTERNALERROR> return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/pluggy/_manager.py", line 80, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/pluggy/_callers.py", line 60, in _multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/pluggy/_result.py", line 60, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/pluggy/_callers.py", line 39, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/pytest_parallel/init.py", line 334, in pytest_runtestloop
INTERNALERROR> six.raise_from(exc, err[1])
INTERNALERROR> File "", line 3, in raise_from
INTERNALERROR> RuntimeError: pytest-parallel got 80 errors, raising the first from Thread-2.
Python: 3.7.15 pytest 6.2.5 pytest-parallel 0.1.1 os: CentOS Linux release 7.9.2009 (Core). It's a virtual machine.
Before using pytest-parallel 0.1.1, I used v0.0.10, but no testcase get executed. Meanwhile I have an old environment with same os version and same python,pytest, pytest-parallel(0.0.10), it works fine(it's a physical server).
error with pytest-parallel 0.1.1 INTERNALERROR> Traceback (most recent call last): INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/allure_pytest/listener.py", line 78, in pytest_runtest_protocol INTERNALERROR> self.allure_logger.schedule_test(uuid, test_result) INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/allure_commons/reporter.py", line 114, in schedule_test INTERNALERROR> self._items[uuid] = test_case INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/allure_commons/reporter.py", line 30, in setitem INTERNALERROR> self.thread_context.setitem(key, value) INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/allure_commons/reporter.py", line 21, in thread_context INTERNALERROR> uuid, last_item = next(reversed(self._thread_context[self._init_thread].items())) INTERNALERROR> StopIteration INTERNALERROR> INTERNALERROR> The above exception was the direct cause of the following exception: INTERNALERROR> INTERNALERROR> Traceback (most recent call last): INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/pytest_parallel/init.py", line 93, in run INTERNALERROR> run_test(self.session, item, None) INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/pytest_parallel/init.py", line 54, in run_test INTERNALERROR> item.ihook.pytest_runtest_protocol(item=item, nextitem=nextitem) INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/pluggy/_hooks.py", line 265, in call INTERNALERROR> return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/pluggy/_manager.py", line 80, in _hookexec INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult) INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/pluggy/_callers.py", line 60, in _multicall INTERNALERROR> return outcome.get_result() INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/pluggy/_result.py", line 60, in get_result INTERNALERROR> raise ex[1].with_traceback(ex[2]) INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/pluggy/_callers.py", line 34, in _multicall INTERNALERROR> next(gen) # first yield INTERNALERROR> RuntimeError: generator raised StopIteration INTERNALERROR> INTERNALERROR> The above exception was the direct cause of the following exception: INTERNALERROR> INTERNALERROR> Traceback (most recent call last): INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/_pytest/main.py", line 269, in wrap_session INTERNALERROR> session.exitstatus = doit(config, session) or 0 INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/_pytest/main.py", line 323, in _main INTERNALERROR> config.hook.pytest_runtestloop(session=session) INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/pluggy/_hooks.py", line 265, in call INTERNALERROR> return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/pluggy/_manager.py", line 80, in _hookexec INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult) INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/pluggy/_callers.py", line 60, in _multicall INTERNALERROR> return outcome.get_result() INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/pluggy/_result.py", line 60, in get_result INTERNALERROR> raise ex[1].with_traceback(ex[2]) INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/pluggy/_callers.py", line 39, in _multicall INTERNALERROR> res = hook_impl.function(*args) INTERNALERROR> File "/app/anaconda3/envs/automation/lib/python3.7/site-packages/pytest_parallel/init.py", line 334, in pytest_runtestloop INTERNALERROR> six.raise_from(exc, err[1]) INTERNALERROR> File "", line 3, in raise_from INTERNALERROR> RuntimeError: pytest-parallel got 80 errors, raising the first from Thread-2.