pytest-dev / py

Python development support library (note: maintenance only)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyStdIsDeprecatedWarning doesnt show the caller line

jayvdb opened this issue · comments

The output of this is like:

/usr/lib/python3.7/site-packages/py/_std.py:19: PyStdIsDeprecatedWarning: py.std is deprecated, plase import _pytestfixturefunction directly
  category=PyStdIsDeprecatedWarning)

It should instead show the line of the caller, not the line of the warning invocation.