Skip to content

Fix example for all tests in session loop #792

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

Conversation

seifertm
Copy link
Contributor

Fixes the example showing how to run all tests in a session-scoped loop.

The change also adds a warning that the code snippet overrides all manually applied marks in strict mode and adds tests verifying the correctness of the example.

The underlying problem was discovered in #705 (comment)

…oped loop.

The change also adds a warning that the code snippet overrides all manually applied marks in strict mode and adds tests verifying the correctness of the example.

Signed-off-by: Michael Seifert <[email protected]>
@seifertm seifertm added this to the v0.23 milestone Feb 28, 2024
@seifertm seifertm marked this pull request as ready for review February 28, 2024 17:31
@seifertm seifertm added this pull request to the merge queue Mar 8, 2024
Merged via the queue into pytest-dev:main with commit b22d84e Mar 8, 2024
@seifertm seifertm deleted the fix-example-for-running-all-tests-in-session-loop branch March 8, 2024 14:40
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.

1 participant