From 918dffba96a336e883f7086160d5b65ff751d3b3 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Mon, 26 Feb 2018 20:57:02 -0300 Subject: [PATCH] Add :with: modifier to raises() and deprecated_call() --- doc/en/reference.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/en/reference.rst b/doc/en/reference.rst index e4192f430cf..ac9bc8efb57 100644 --- a/doc/en/reference.rst +++ b/doc/en/reference.rst @@ -53,7 +53,9 @@ main raises ------ + .. autofunction:: _pytest.python_api.raises + :with: excinfo Examples at :ref:`assertraises`. @@ -61,7 +63,7 @@ deprecated_call --------------- .. autofunction:: _pytest.recwarn.deprecated_call - + :with: .. _`hook-reference`: