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

docs error pytest.main #2008

Closed
twice opened this issue Oct 18, 2016 · 0 comments
Closed

docs error pytest.main #2008

twice opened this issue Oct 18, 2016 · 0 comments
Labels
type: bug problem that needs to be addressed type: docs documentation improvement, missing or needing clarification

Comments

@twice
Copy link

twice commented Oct 18, 2016

I believe the docs as per pytest-from-python-code are incorrect. Their text is as follows:

pytest.main(['-x', 'mytestdir'])
or pass in a string:
pytest.main("-x mytestdir")

The string argument option flags a deprecation message, whereas I believe the array args option should be
pytest.main([ 'mytestdir', '-x'])

platform darwin -- Python 3.5.2, pytest-3.0.2, py-1.4.31, pluggy-0.3.1

@RonnyPfannschmidt RonnyPfannschmidt added type: bug problem that needs to be addressed type: docs documentation improvement, missing or needing clarification labels Oct 18, 2016
RonnyPfannschmidt added a commit that referenced this issue Oct 18, 2016
…-remove-main-string

docs: remove mention of string args to main

closes #2008
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug problem that needs to be addressed type: docs documentation improvement, missing or needing clarification
Projects
None yet
Development

No branches or pull requests

2 participants