Use pytest<7 for tests

This commit is contained in:
Unrud 2022-02-07 14:13:56 +01:00
parent 11dd0e9380
commit c155e2a351

View File

@ -52,7 +52,7 @@ WEB_FILES = ["web/internal_data/css/icon.png",
setup_requires = [] setup_requires = []
if {"pytest", "test", "ptr"}.intersection(sys.argv): if {"pytest", "test", "ptr"}.intersection(sys.argv):
setup_requires.append("pytest-runner") setup_requires.append("pytest-runner")
tests_require = ["pytest-runner", "pytest", "pytest-cov", "pytest-flake8", tests_require = ["pytest-runner", "pytest<7", "pytest-cov", "pytest-flake8",
"pytest-isort", "typeguard", "waitress"] "pytest-isort", "typeguard", "waitress"]
os.environ["PYTEST_ADDOPTS"] = os.environ.get("PYTEST_ADDOPTS", "") os.environ["PYTEST_ADDOPTS"] = os.environ.get("PYTEST_ADDOPTS", "")
# Mypy only supports CPython # Mypy only supports CPython