Clean up warnings generated by pytest's own suite

This commit is contained in:
Bruno Oliveira
2017-03-20 22:01:22 -03:00
parent d027f760c0
commit fa56114115
7 changed files with 52 additions and 29 deletions

View File

@@ -936,7 +936,7 @@ def _idval(val, argname, idx, idfn, config=None):
import warnings
msg = "Raised while trying to determine id of parameter %s at position %d." % (argname, idx)
msg += '\nUpdate your code as this will raise an error in pytest-4.0.'
warnings.warn(msg)
warnings.warn(msg, DeprecationWarning)
if s:
return _escape_strings(s)