Skip to content

Commit

Permalink
docs: describe when UsageError is raised for loop_scope="class" marker
Browse files Browse the repository at this point in the history
before that: docs claimed (erroneously) the opposite of the actual (and intended) behavior.
  • Loading branch information
zed authored and seifertm committed Dec 11, 2024
1 parent c4c1b48 commit ebbd602
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit ebbd602

Please # to comment.