diff --git a/doc/en/how-to/assert.rst b/doc/en/how-to/assert.rst index 5ae676cf59b..43aeb66fdfc 100644 --- a/doc/en/how-to/assert.rst +++ b/doc/en/how-to/assert.rst @@ -64,8 +64,6 @@ it is printed alongside the assertion introspection in the traceback. See :ref:`assert-details` for more information on assertion introspection. -.. _`assertraises`: - Assertions about approximate equality ------------------------------------- @@ -93,6 +91,8 @@ It also supports comparisons involving NaNs. See :func:`pytest.approx` for details. +.. _`assertraises`: + Assertions about expected exceptions ------------------------------------------