Откуда взялся pytest 4.4.0?
tox
установил его полностью независимо от pip install 'pytest~=3.7.0' --force-reinstall
Это можно решитьпривязывая tox
среду к конкретной pytest
версии в tox.ini
[py]
deps=
pytest<3.10
...
Это не решит проблему с
pluggy.manager.PluginValidationError: Plugin 'removestalebytecode' could not be loaded: (pytest 4.4.0 (XXX/.tox/py35/lib/python3.5/site-packages), Requirement.parse('pytest<3.10'))!
, потому что в текущей версии 3.0.1 *Плагин 1020 * pytest-remove-stale-bytecode не работает с py.test
3.10.
Для решения проблемы tox.ini
следует ограничить версиюиз pytest-remove-stale-bytecode
[py]
deps=
...
pytest-remove-stale-bytecode<3.0.1