From f0cee593f2ce4bd53c94f76d588697f08194b67d Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Fri, 7 Jun 2019 10:59:40 -0300 Subject: [PATCH] Link deprecation docs pytest.raises 'message' warning As commented in https://github.com/pytest-dev/pytest/issues/3974#issuecomment-499870914 --- src/_pytest/deprecated.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_pytest/deprecated.py b/src/_pytest/deprecated.py index f80773fe5..b6b3bddf7 100644 --- a/src/_pytest/deprecated.py +++ b/src/_pytest/deprecated.py @@ -35,8 +35,8 @@ GETFUNCARGVALUE = RemovedInPytest4Warning( RAISES_MESSAGE_PARAMETER = PytestDeprecationWarning( "The 'message' parameter is deprecated.\n" "(did you mean to use `match='some regex'` to check the exception message?)\n" - "Please comment on https://github.com/pytest-dev/pytest/issues/3974 " - "if you have concerns about removal of this parameter." + "Please see:\n" + " https://docs.pytest.org/en/4.6-maintenance/deprecations.html#message-parameter-of-pytest-raises" ) RESULT_LOG = PytestDeprecationWarning(