pytest-parallel
pytest-parallel copied to clipboard
Using the command line to execute the script in windows, an error is reported
Test session starts (platform: win32, Python 3.8.2, pytest 5.4.1, pytest-sugar 0.9.4)
rootdir: D:\TestScriptDir\pyqt5_study
plugins: allure-pytest-2.8.13, forked-1.2.0, html-2.1.1, metadata-1.8.0, ordering-0.6, parallel-0.1.0, repeat-0.8.0, rerunfailures-9.0, sugar-0.9.4, xdist-1.32.0
collecting ... pytest-parallel: 1 worker (process), 2 tests per worker (threads)
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "C:\Users\luozhongwen\AppData\Local\Programs\Python\Python38\lib\site-packages_pytest\main.py", line 191, in wrap_session
INTERNALERROR> session.exitstatus = doit(config, session) or 0
INTERNALERROR> File "C:\Users\luozhongwen\AppData\Local\Programs\Python\Python38\lib\site-packages_pytest\main.py", line 247, in _main
INTERNALERROR> config.hook.pytest_runtestloop(session=session)
INTERNALERROR> File "C:\Users\luozhongwen\AppData\Local\Programs\Python\Python38\lib\site-packages\pluggy\hooks.py", line 286, in call
INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR> File "C:\Users\luozhongwen\AppData\Local\Programs\Python\Python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "C:\Users\luozhongwen\AppData\Local\Programs\Python\Python38\lib\site-packages\pluggy\manager.py", line 84, in
Results (0.26s):
Exception in thread Thread-1:
Traceback (most recent call last):
File "
Thread 0x000015dc (most recent call first): File "C:\Users\luozhongwen\AppData\Local\Programs\Python\Python38\lib\threading.py", line 1202 in invoke_excepthook File "C:\Users\luozhongwen\AppData\Local\Programs\Python\Python38\lib\threading.py", line 934 in _bootstrap_inner File "C:\Users\luozhongwen\AppData\Local\Programs\Python\Python38\lib\threading.py", line 890 in _bootstrap
Current thread 0x00001eb4 (most recent call first): <no Python frame>
I am also facing same kind of error. Could you please help!
platform win32 -- Python 3.7.7, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: C:\Git\python-pytest-bdd, configfile: pytest.ini
plugins: bdd-4.0.2, forked-1.3.0, html-3.1.1, html-reporter-0.2.6, metadata-1.11.0, parallel-0.1.0, xdist-2.3.0
collected 7 items
pytest-parallel: 1 worker (process), 2 tests per worker (threads)
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "c:\users\user1.virtualenvs\python-pytest-bdd-8g8otlzx\lib\site-packages_pytest\main.py", line 269, in wrap_session
INTERNALERROR> session.exitstatus = doit(config, session) or 0
INTERNALERROR> File "c:\users\user1.virtualenvs\python-pytest-bdd-8g8otlzx\lib\site-packages_pytest\main.py", line 323, in _main
INTERNALERROR> config.hook.pytest_runtestloop(session=session)
INTERNALERROR> File "c:\users\user1.virtualenvs\python-pytest-bdd-8g8otlzx\lib\site-packages\pluggy\hooks.py", line 286, in call
INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR> File "c:\users\user1.virtualenvs\python-pytest-bdd-8g8otlzx\lib\site-packages\pluggy\manager.py", line 93, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "c:\users\user1.virtualenvs\python-pytest-bdd-8g8otlzx\lib\site-packages\pluggy\manager.py", line 87, in