add deprecation warnings for using markinfo attributes

This commit is contained in:
Ronny Pfannschmidt
2017-06-22 15:12:50 +02:00
parent c791895c93
commit 1d926011a4
2 changed files with 20 additions and 6 deletions

View File

@@ -7,6 +7,11 @@ be removed when the time comes.
"""
from __future__ import absolute_import, division, print_function
class RemovedInPytest4_0Warning(DeprecationWarning):
"warning class for features removed in pytest 4.0"
MAIN_STR_ARGS = 'passing a string to pytest.main() is deprecated, ' \
'pass a list of arguments instead.'
@@ -22,3 +27,6 @@ SETUP_CFG_PYTEST = '[pytest] section in setup.cfg files is deprecated, use [tool
GETFUNCARGVALUE = "use of getfuncargvalue is deprecated, use getfixturevalue"
RESULT_LOG = '--result-log is deprecated and scheduled for removal in pytest 4.0'
MARK_INFO_ATTRIBUTE = RemovedInPytest4_0Warning(
"Markinfo attributes are deprecated, please iterate the mark Collection")