-
-
Notifications
You must be signed in to change notification settings - Fork 233
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
Protect from scenarios where all frames should be ignored #62
Conversation
Your approach doesn’t work and your tests prove it. :) You’ll have to set name to |
7003f6c
to
361077a
Compare
@hynek wow, that's embarassing. Not sure how I managed to write a test that fails and then not fix it. ... anyway, should be happy now. Thanks for looking! |
Current coverage is
|
@hynek ahem :) Currently:
any chance you'll take a look at this awesome PR that solves bad logs for me? :) |
Ugh no idea why this got lost. :( But since you’re here: could you test if it actually helps? :) |
With latest pypi and master:
with this branch, no errors! :)
|
Protect from scenarios where all frames should be ignored
Thanks and sorry for the delay! |
I ran into this scenario running the tests for my app. It opens some connections to a cassandra cluster, runs some tests, and (sometimes) doesn't close the connection. Each cluster registers an
atexit
function which closes the connection.When
py.test
runs these tests, just before quitting it prints the following traceback:Unfortunately I haven't been able to reproduce this in a simple test. I think it involves the fact that some of the code is written in
C
, but haven't been able to verify that. I have, however, fixed the bug in a pretty simple way. Hopefully this hopes someone else as well!