From f1a9f8dd231783ec8200d1565a9fa4febf52c6df Mon Sep 17 00:00:00 2001 From: Sebastian Bank Date: Sun, 17 Mar 2024 19:18:43 +0100 Subject: [PATCH] work around pytest import file mismatch error ``` imported module 'conftest' has this __file__ attribute: /home/runner/work/graphviz/graphviz/tests/backend/conftest.py which is not the same as the test file we want to collect: /home/runner/work/graphviz/graphviz/tests/conftest.py HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules ``` --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index e972b4b604..8b122cbabe 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ python_requires='>=3.8', extras_require={ 'dev': ['tox>=3', 'flake8', 'pep8-naming', 'wheel', 'twine'], - 'test': ['pytest>=7', + 'test': ['pytest>=7,<8.1', 'pytest-mock>=3', 'pytest-cov', 'coverage'], 'docs': ['sphinx>=5,<7', 'sphinx-autodoc-typehints', 'sphinx-rtd-theme'],