-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Running py.test without arguments raises missing argument error #821
Comments
A couple of things come to mind:
|
Interestingly this was a pytest.ini file a couple of parents up in my file system (outside of my project dir), which has It seems all paths are tried up to root ( Perhaps it would be useful if the arg parser could report which args it used and where it came from on fail, maybe point to docs? I believe this would entail passing information on ini/root dir from |
Created PR #822 which does that... review and comments are welcome! 😄 |
Thanks, good job, works very elegantly: $ py.test
usage: py.test [options] [file_or_dir] [file_or_dir] [...]
py.test: error: unrecognized arguments: --reuse-db
inifile: /Users/big/dev/pytest.ini
rootdir: /Users/big/dev |
I simply run
py.test
in a fresh env with pytest 2.7.2, without any config or tox files. Environment variables don't seem to mention anything relates toreuse
ordb
ortest
for that matter...One thing I would not is that this behavior is recent, sometime after installing pytest-django for another project/venv.
This is obviously a local/environment issue since, and running py.test on a separate machine works fine.
Anything else I can look for as to what adds this argument?
The text was updated successfully, but these errors were encountered: