Skip to content

Commit 8f93ae9

Browse files
authored
Merge pull request #13486 from hosmir/fixtypo
Fix typo in docs regarding capsys/capteesys
2 parents 80dfa2d + 32d85d0 commit 8f93ae9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/en/builtin.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
6969
7070
.. code-block:: python
7171
72-
def test_output(capsys):
72+
def test_output(capteesys):
7373
print("hello")
7474
captured = capteesys.readouterr()
7575
assert captured.out == "hello\n"

src/_pytest/capture.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@ def capteesys(request: SubRequest) -> Generator[CaptureFixture[str]]:
10431043
10441044
.. code-block:: python
10451045
1046-
def test_output(capsys):
1046+
def test_output(capteesys):
10471047
print("hello")
10481048
captured = capteesys.readouterr()
10491049
assert captured.out == "hello\n"

0 commit comments

Comments
 (0)