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: describe when UsageError is raised for loop_scope="class" marker #1009

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/reference/markers/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The following code example provides a shared event loop for all tests in `TestCl
.. include:: class_scoped_loop_strict_mode_example.py
:code: python

Requesting class scope with the test being part of a class will give a *UsageError*.
If you request class scope for a test that is not part of a class, it will result in a *UsageError*.
Similar to class-scoped event loops, a module-scoped loop is provided when setting mark's scope to *module:*

.. include:: module_scoped_loop_strict_mode_example.py
Expand Down
Loading