Skip to content

Commit 5a86322

Browse files
nicoddemuspatchback[bot]
authored andcommitted
Merge pull request #14682 from The-Compiler/doc-ai-slop
Fix AI slop issues in docs (cherry picked from commit efc0134)
1 parent 6effa08 commit 5a86322

3 files changed

Lines changed: 2 additions & 6 deletions

File tree

doc/en/example/nonpython.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ consulted when reporting in ``verbose`` mode. It should return a tuple
6262
``(path, lineno, description)``, where:
6363

6464
* ``path`` is the path shown in reports (usually ``self.path`` or ``self.fspath``).
65-
* ``lineno`` is a zero-based line number, or ``0`` when no specific line applies.
65+
* ``lineno`` is the line number, or ``0`` when no specific line applies.
6666
* ``description`` is a short label shown for the collected item:
6767

6868
.. code-block:: pytest

doc/en/how-to/assert.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -432,10 +432,6 @@ Special comparisons are done for a number of cases:
432432
* comparing long sequences: first failing indices
433433
* comparing dicts: different entries
434434

435-
In string context diffs, lines prefixed with ``-`` come from the left-hand side
436-
of ``assert left == right``, while lines prefixed with ``+`` come from the
437-
right-hand side.
438-
439435
See the :ref:`reporting demo <tbreportdemo>` for many more examples.
440436

441437
Defining your own explanation for failed assertions

doc/en/reference/customize.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ pyproject.toml
104104
]
105105
106106
For projects that still run pytest versions older than 6.0, keep
107-
``minversion`` in ``pytest.ini`` or ``setup.cfg`` too. Those versions
107+
``minversion`` in ``pytest.ini`` or ``tox.ini`` too. Those versions
108108
do not read ``pyproject.toml``.
109109

110110
tox.ini

0 commit comments

Comments
 (0)