Skip to content

PyStdIsDeprecatedWarning doesnt show the caller line #227

@jayvdb

Description

@jayvdb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions