From 9cd70db202d812f6bbad2a2709c9068dbc158f5d Mon Sep 17 00:00:00 2001 From: Stanis Trendelenburg Date: Wed, 3 Jun 2026 19:27:32 +0200 Subject: [PATCH] docs: fix target of "assertraises" anchor. --- doc/en/how-to/assert.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ------------------------------------------