Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Python tests fail: Defining 'pytest_plugins' in a non-top-level conftest is no longer supported #13132

Open
yurivict opened this issue Oct 19, 2022 · 0 comments
Labels
needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it type: bug

Comments

@yurivict
Copy link

==================================================================================== test session starts =====================================================================================
platform freebsd13 -- Python 3.9.14, pytest-7.1.3, pluggy-1.0.0 -- /usr/local/bin/python3.9
cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/disk-samsung/freebsd-ports/misc/py-tvm/work-py39/tvm-0.10.0/.hypothesis/examples')
rootdir: /disk-samsung/freebsd-ports/misc/py-tvm/work-py39/tvm-0.10.0
plugins: cov-2.9.0, rerunfailures-10.1, xdist-2.5.0, hypothesis-6.56.1, forked-1.4.0
collected 0 items / 1 error                                                                                                                                                                  

=========================================================================================== ERRORS ===========================================================================================
_______________________________________________________________________________ ERROR collecting test session ________________________________________________________________________________
Defining 'pytest_plugins' in a non-top-level conftest is no longer supported:
It affects the entire test suite instead of just below the conftest as expected.
  /disk-samsung/freebsd-ports/misc/py-tvm/work-py39/tvm-0.10.0/tests/micro/arduino/conftest.py
Please move it to a top level conftest file at the rootdir:
  None
For more information, visit:
  https://docs.pytest.org/en/stable/deprecations.html#pytest-plugins-in-non-top-level-conftest-files
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
====================================================================================== 1 error in 2.61s ======================================================================================
*** Error code 2

Version: 0.10.0
Python-3.9
FreeBSD 13.1 STABLE

@yurivict yurivict added needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it type: bug labels Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it type: bug
Projects
None yet
Development

No branches or pull requests

1 participant