pytest icon indicating copy to clipboard operation
pytest copied to clipboard

when warnings error - ensure the location is printed

Open RonnyPfannschmidt opened this issue 6 years ago • 4 comments

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)

RonnyPfannschmidt avatar Jan 28 '19 20:01 RonnyPfannschmidt

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?

thomashoang avatar Apr 19 '19 16:04 thomashoang

pytest_logwarning was removed in https://docs.pytest.org/en/latest/changelog.html#pytest-5-1-0-2019-08-15

Zac-HD avatar Jun 19 '23 00:06 Zac-HD

This issue is about the error location reporting ,which unlike the error at hand was not fixed

RonnyPfannschmidt avatar Jun 19 '23 00:06 RonnyPfannschmidt

See #11686 for easy reproduction steps including a sample test and pytest.ini file

bdfariello avatar Dec 14 '23 14:12 bdfariello