-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent behaviour of recwarn #840
Comments
A workaround is to set |
Not sure if this is a problem though. |
@Themanwithoutaplan, could you please try with the latest |
Sorry for taking such a long time to review this but I still have this problem. |
I am also seeing this problem. |
due to pytest bug pytest-dev/pytest#840
There is a python issue which has been fixed/made better in py34 (the warning context stuff mentioned somewhere here too I think). That will be the reason, nothing pytest can fix, the best you could do it provide a bit more powerful tools, but basically as soon as someone uses anything but "always" and "error" filters, you can run into this. You could give tools (wrote to the list about that) to make it easier to replace "ignore" or "default" filters, but basically, the only way to get around such issues is to make the test very clean. |
Fixed by #4104. |
I'm still seeing failures in Python 2.7 even when using a checkout of the current master. |
Thanks @Themanwithoutaplan, reopening then. |
I have reliable failures when running tox -e py27 on my project. My current workaround (always warn) is fine for me but causes problems for some downstream projects. |
hello, first off thank you for the issue! python 2.x support has ended for pytest core. we've decided in #7296 to close the python-2-specific issues to free up some space in our backlog. however, in accordance to our python 2.7 and 3.4 support community patches will still be accepted to the |
I'm have a test that checks that a warning is issued. This runs perfectly with pytest but can fail when using tox. I suspect that it has something to do with the warningsregistry but I can't see offhand.
A traceback can be seen at: https://build.adimian.com/job/openpyxl-2.3/70/consoleFull
The failure happens when testing is not restricted to the relevant module.
ie.
tox -e py27 openpyxl/reader
does not fail buttox -e py27 openpyxl
does. The failures are consistent across Python versions.I suspect that this is related to #228 and will try to create a workaround.
The text was updated successfully, but these errors were encountered: