Skip to content

Commit 0f60fca

Browse files
authored
docs: describe when UsageError is raised for loop_scope="class" marker
before that: docs claimed (erroneously) the opposite of the actual (and intended) behavior.
1 parent a1cd861 commit 0f60fca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/reference/markers/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The following code example provides a shared event loop for all tests in `TestCl
2525
.. include:: class_scoped_loop_strict_mode_example.py
2626
:code: python
2727

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

3131
.. include:: module_scoped_loop_strict_mode_example.py

0 commit comments

Comments
 (0)