Closed mgorny closed 4 years ago
When printing a warning, the message should gives the user the right filename. The filename comes from the current execution stack.
For (still) unknown reason the stacklevel (the position of the caller in the stack) should be 3 if we decorate a function but 2 if it is a class.
Expected Behavior
Tests should pass, as they did in 1.2.7.
To run tests, I've added
,pypy3
to PyTest conditions intox.ini
.Actual Behavior
The following tests fails with PyPy3:
I don't know if this isn't a problem with pytest itself and/or pypy3. However,
Environment