diff --git a/doc/en/reference.rst b/doc/en/reference.rst index 693221bff..a056fdf28 100644 --- a/doc/en/reference.rst +++ b/doc/en/reference.rst @@ -360,7 +360,7 @@ capfd def test_system_echo(capfd): os.system('echo "hello"') - captured = capsys.readouterr() + captured = capfd.readouterr() assert captured.out == "hello\n"