diff --git a/pytest.ini b/pytest.ini index da67dd11..1ea7f807 100644 --- a/pytest.ini +++ b/pytest.ini @@ -14,4 +14,4 @@ filterwarnings = error ignore:SelectableGroups dict interface:DeprecationWarning:flake8 ignore: is not using a cooperative constructor:pytest.PytestDeprecationWarning - ignore:The .+? argument to Flake8Item is deprecated:pytest.PytestRemovedIn8Warning + ignore:The .+? argument to Flake8Item is deprecated:pytest.PytestDeprecationWarning diff --git a/setup.py b/setup.py index 07488abe..c8152c82 100644 --- a/setup.py +++ b/setup.py @@ -122,7 +122,8 @@ def find_namespaced_packages(namespace): "flake8", "mypy", "nextstrain-sphinx-theme", - "pytest", + "pytest; python_version != '3.9'", + "pytest !=7.0.0; python_version == '3.9'", "pytest-flake8", "recommonmark", "sphinx>=3",