-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
AttributeError: catch_log_handler #3099
Comments
GitMate.io thinks the contributor most likely able to help you is @nicoddemus. |
So I'm running this: If I remove plugins it doesn't seem to happen (I only get the ignored exception). Seems like generators aren't properly cleaned up? |
based on Lines 290 to 294 in a8d3d32
|
also we need a correct api for this storage stuff, its by now a freaking mess |
I suspect there's absolutely no nesting and the finally clause is triggered by the garbage collector (iow: generators aren't properly cleaned up). I don't have proof of course :) |
@ionelmc can we please get a traceback with |
Here it is:
|
thanks, now that one is a real puzzle |
I'm hitting the same bug with a much more simple case, just trying to access Code for
Code for
Versions installed:
Full stacktrace:
I've quickly printed the |
At least in my case the culprit was that a |
thanks for that note, we should totally protect against that case in some way |
I ran into this myself, spent a few hours trying to figure out what's up. Did not manage to pin-point the faulty location, but the problem seems to boil down to the fixture tearing down before the test finishes running. I think it has to do with some kind of exceptions generated during the logging handler; perhaps a loose |
@volans- |
Without this caplog.record_tuples etc is not available when using `pdb.set_trace()` in a test. Fixes pytest-dev#3099
Maybe #3998 helps with some of the issues mentioned here? |
Without this caplog.record_tuples etc is not available when using `pdb.set_trace()` in a test. Ref: pytest-dev#3099
I think this has been fixed by #3998 |
So I have this mind boggling issue for a test like this:
test_bug.py:
conftest.py:
tox.ini:
Sometimes it pass and I get this:
And sometimes it fails:
Removing my weird helper from conftest makes the problem go away but I need it.
Also, if I remove some of those pytest plugins it doesn't error so often.
Any clue what's going on here?
The text was updated successfully, but these errors were encountered: