pytest
pytest copied to clipboard
when warnings error - ensure the location is printed
based on https://github.com/pytest-dev/pytest-xdist/issues/406
the actual error was hidden since a warning as a exception will not carry on the provided location since it seems assumed that the warning happens soundly in line (which is arguably a python shortcoming)
Hello I would like to work on this task. Is there any way to duplicate the problem because the issue that this issue is based on seems to be closed so I assume that the repo hypothesis has been updated and will not show the issue. Also, do you have any other advice moving forward with this issue?
pytest_logwarning was removed in https://docs.pytest.org/en/latest/changelog.html#pytest-5-1-0-2019-08-15
This issue is about the error location reporting ,which unlike the error at hand was not fixed
See #11686 for easy reproduction steps including a sample test and pytest.ini file