You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was updating the Debian package for python-graphviz 0.20.2 and was having problems running with pytest 8.1.1.
___ ERROR collecting .pybuild/cpython3_3.11_graphviz/build/tests/conftest.py ___
import file mismatch:
imported module 'conftest' has this __file__ attribute:
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_graphviz/build/tests/backend/conftest.py
which is not the same as the test file we want to collect:
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_graphviz/build/tests/conftest.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
Debian's test process involves creating a build directory and then running the tests against that supported interpreter versions build directory, so paths are different than just running in the source directory.
As far as I can tell it looks like pytest is getting confused by the existence of two different conftest.py files in tests/ and tests/backends.
I solved the above issue for our build process by moving the contents of tests/backends/conftest.py into tests/conftest.py.
Hello,
I was updating the Debian package for python-graphviz 0.20.2 and was having problems running with pytest 8.1.1.
Debian's test process involves creating a build directory and then running the tests against that supported interpreter versions build directory, so paths are different than just running in the source directory.
As far as I can tell it looks like pytest is getting confused by the existence of two different conftest.py files in tests/ and tests/backends.
I solved the above issue for our build process by moving the contents of tests/backends/conftest.py into tests/conftest.py.
The text was updated successfully, but these errors were encountered: