From 1027dee0156aa4928a1d09d3eac91d20c6a1b306 Mon Sep 17 00:00:00 2001 From: Freya Bruhin Date: Mon, 6 Jul 2026 14:33:13 +0200 Subject: [PATCH] Fix AI slop issues in docs Follow-ups as commented on the respective PRs: - https://github.com/pytest-dev/pytest/pull/14256 - https://github.com/pytest-dev/pytest/pull/14257 - https://github.com/pytest-dev/pytest/pull/14258 --- doc/en/example/nonpython.rst | 2 +- doc/en/how-to/assert.rst | 4 ---- doc/en/reference/customize.rst | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/doc/en/example/nonpython.rst b/doc/en/example/nonpython.rst index 822a5093312..9ac2b508ceb 100644 --- a/doc/en/example/nonpython.rst +++ b/doc/en/example/nonpython.rst @@ -62,7 +62,7 @@ consulted when reporting in ``verbose`` mode. It should return a tuple ``(path, lineno, description)``, where: * ``path`` is the path shown in reports (usually ``self.path`` or ``self.fspath``). -* ``lineno`` is a zero-based line number, or ``0`` when no specific line applies. +* ``lineno`` is the line number, or ``0`` when no specific line applies. * ``description`` is a short label shown for the collected item: .. code-block:: pytest diff --git a/doc/en/how-to/assert.rst b/doc/en/how-to/assert.rst index 43aeb66fdfc..5564aa9ce83 100644 --- a/doc/en/how-to/assert.rst +++ b/doc/en/how-to/assert.rst @@ -432,10 +432,6 @@ Special comparisons are done for a number of cases: * comparing long sequences: first failing indices * comparing dicts: different entries -In string context diffs, lines prefixed with ``-`` come from the left-hand side -of ``assert left == right``, while lines prefixed with ``+`` come from the -right-hand side. - See the :ref:`reporting demo ` for many more examples. Defining your own explanation for failed assertions diff --git a/doc/en/reference/customize.rst b/doc/en/reference/customize.rst index 8f781eab4a5..7a4030d081a 100644 --- a/doc/en/reference/customize.rst +++ b/doc/en/reference/customize.rst @@ -104,7 +104,7 @@ pyproject.toml ] For projects that still run pytest versions older than 6.0, keep - ``minversion`` in ``pytest.ini`` or ``setup.cfg`` too. Those versions + ``minversion`` in ``pytest.ini`` or ``tox.ini`` too. Those versions do not read ``pyproject.toml``. tox.ini