From 612f39c38bc4cb0c0e8c52f5f889e612c39b7658 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Thu, 4 Jun 2026 10:25:11 +0300 Subject: [PATCH] Merge pull request #14550 from trendels/docs-fix docs: fix target of "assertraises" anchor. (cherry picked from commit aa01adceb7d52294d7a78f68939bf6862e0ce846) --- 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 006cf475b02..377b2a5a3c0 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 ------------------------------------------