diff options
author | Gleb Nikonorov <gleb.i.nikonorov@gmail.com> | 2020-05-27 23:03:07 -0400 |
---|---|---|
committer | Gleb Nikonorov <gleb.i.nikonorov@gmail.com> | 2020-05-27 23:03:07 -0400 |
commit | 14de08011b05bffe66df6198ac4ccbac5c8aa7fe (patch) | |
tree | 920ac54ca2b239a2cd6aa5010bad0e8b9c0a71bf /src/_pytest/deprecated.py | |
parent | d742b386c373aeb7ab24e2f5013a537decb97a3a (diff) | |
download | pytest-14de08011b05bffe66df6198ac4ccbac5c8aa7fe.tar.gz |
fix the unit tests, add the proper deprecation warning, and add in a changelog entry
Diffstat (limited to 'src/_pytest/deprecated.py')
-rw-r--r-- | src/_pytest/deprecated.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/_pytest/deprecated.py b/src/_pytest/deprecated.py index f981a4a4b..1ce4e1e39 100644 --- a/src/_pytest/deprecated.py +++ b/src/_pytest/deprecated.py @@ -80,3 +80,8 @@ MINUS_K_COLON = PytestDeprecationWarning( "The `-k 'expr:'` syntax to -k is deprecated.\n" "Please open an issue if you use this and want a replacement." ) + +WARNING_CAPTURED_HOOK = PytestDeprecationWarning( + "The pytest_warning_captured is deprecated and will be removed in a future release.\n" + "Please use pytest_warning_recorded instead." +) |