Open huntzhan opened 1 year ago
See https://github.com/pytest-dev/pytest/issues/10420#issuecomment-1290373344 for a similar issue. If pytest-parallel needs things in pylib outside of py.path
, it should declare py
as a dependency properly, which it currently does not.
got it, thx
@huntzhan Huh? This is a bug in pytest-parallel, so this shouldn't be closed until it's fixed here.
@huntzhan Huh? This is a bug in pytest-parallel, so this shouldn't be closed until it's fixed here.
Oh, I thought there's another issue to track the similar issue. Reopen again.
Note the immediate fix for this is for pytest-parallel
to add the missing py
dependency. As a workaround, you can install py
yourself and things should start working.
In the long run, however, pytest-parallel should stop depending on pylib entirely, since we (pytest/pylib maintainers) want to sunset it. It's only used for logging. I'm not too familiar with py.log
, but the Python stdlib logging might be a suitable replacement?
@The-Compiler Thanks for your instruction!
Please see https://github.com/kevlened/pytest-parallel/pull/119#issuecomment-1294035423
Unfortunately, I recommend version pinning to pytest 7.1.3 while planning a move to pytest-xdist
No need to pin, just add py
to your dependencies manually.
pytest just release a new version (7.1.3 -> 7.2.0) that breaks pytest-parallel. Error log: