Skip to content

Commit 62aa427

Browse files
authored
doc: Clarify capturing .readouterr() return value (#13222)
This got added in 38fb6aa, where the "The return value ... changed" made a lot of sense. However, 9c5da9c removed the "versionadded" without adjusting the wording. Also see 3a4435f.
1 parent f0cc122 commit 62aa427

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

Diff for: doc/en/how-to/capture-stdout-stderr.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ test from having to care about setting/resetting
131131
output streams and also interacts well with pytest's
132132
own per-test capturing.
133133

134-
The return value from ``readouterr`` changed to a ``namedtuple`` with two attributes, ``out`` and ``err``.
134+
The return value of ``readouterr()`` is a ``namedtuple`` with two attributes, ``out`` and ``err``.
135135

136136
If the code under test writes non-textual data (``bytes``), you can capture this using
137137
the :fixture:`capsysbinary` fixture which instead returns ``bytes`` from

Diff for: doc/en/how-to/parametrize.rst

-4
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ pytest enables test parametrization at several levels:
2929

3030
.. regendoc: wipe
3131
32-
33-
34-
Several improvements.
35-
3632
The builtin :ref:`pytest.mark.parametrize ref` decorator enables
3733
parametrization of arguments for a test function. Here is a typical example
3834
of a test function that implements checking that a certain input leads

0 commit comments

Comments
 (0)