Skip to content

Commit 1d6bbab

Browse files
Pulkit07nicoddemus
authored andcommitted
Add a new Exceptions section in documentation and document UsageError
1 parent 3a8b082 commit 1d6bbab

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/en/reference.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -951,6 +951,14 @@ PYTEST_CURRENT_TEST
951951
This is not meant to be set by users, but is set by pytest internally with the name of the current test so other
952952
processes can inspect it, see :ref:`pytest current test env` for more information.
953953

954+
Exceptions
955+
----------
956+
957+
UsageError
958+
~~~~~~~~~~
959+
960+
.. autoclass:: _pytest.config.UsageError()
961+
954962

955963
.. _`ini options ref`:
956964

0 commit comments

Comments
 (0)