-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
py.test "--override-ini=python_files=*_tests.py" does not work #2238
Comments
nicoddemus
added a commit
to nicoddemus/pytest
that referenced
this issue
Feb 9, 2017
nicoddemus
added a commit
to nicoddemus/pytest
that referenced
this issue
Feb 9, 2017
This was referenced Mar 14, 2017
This was referenced Mar 5, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use this sandbox to reproduce the error: https://gist.github.com/sirex/1bf7dda1cc3ba14ce7ebb6f964bf0d39
Sandbox contains
module_tests.py
, but if I run following command this test is not discovered:After some debugging I found, that initially
--override-ini
options are ignored andpython_files
are cached with default values, then ofter some time--override-ini
becomes available, butpython_files
already have cached values and ignores--override-ini
.But if I add
pytest.ini
:Then this test file is collected.
The text was updated successfully, but these errors were encountered: