Skip to content

Clarify docs for pytest.main default behavior #11187

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

Merged
merged 2 commits into from
Jul 9, 2023
Merged

Clarify docs for pytest.main default behavior #11187

merged 2 commits into from
Jul 9, 2023

Conversation

antosikv
Copy link
Contributor

@antosikv antosikv commented Jul 9, 2023

Add explicit mentions of the somewhat confusing default behavior (discussed in #11183) to both API reference and how-to section about ways to invoke pytest.

Add explicit mentions of the default behavior to both API reference and
how-to section about ways to invoke pytest.
Copy link
Member

@bluetech bluetech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

I left some rewording suggestions, WDYT?

Explicitly mention reading arguments from `sys.argv` to avoid any confusion.

Co-authored-by: Ran Benita <[email protected]>
@antosikv
Copy link
Contributor Author

antosikv commented Jul 9, 2023

The explicit mention of taking arguments from sys.argv is probably a good idea to avoid any confusion.

@nicoddemus
Copy link
Member

Thanks!

@nicoddemus nicoddemus merged commit 99ab8ae into pytest-dev:main Jul 9, 2023
@antosikv antosikv deleted the clarify-main-docs branch July 9, 2023 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants