-
-
Notifications
You must be signed in to change notification settings - Fork 440
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
IndexError in Python 3.5 #434
Comments
You may be the first person to try coverage.py with the new 3.5 async support. Coverage.py will have to be updated to handle it. The more tests you can give me for it, the better :) |
@Luhnatic if you can provide instructions to reproduce the problem, I can take a look at it. |
Original comment by tehasdf (Bitbucket: tehasdf, GitHub: tehasdf) Apparently you need to enable branch coverage to trigger this error (and indeed aiopg does include a
Run like:
|
Original comment by Aymeric Augustin (Bitbucket: aaugustin, GitHub: aaugustin) I also hit this issue on https://github.com/aaugustin/websockets. I implemented an async context manager and I get the same trace. It's slightly vexing because my tox.ini specifies:
Thanks for a great tool anyway! |
Original comment by Aymeric Augustin (Bitbucket: aaugustin, GitHub: aaugustin) So, the disassembly of:
gives:
This patch appears to fix the issue for me:
(Sorry for the inline diff, I have mostly stopped using hg and I'm too lazy at this time of the night to figure out how to make a pull request on BitBucket.) |
I'm working on a complete re-implementation of branch measurement that will include this. |
This is fixed in 44719bd (bb), which will be 4.1 |
Issue #464 was marked as a duplicate of this issue. |
Originally reported by Theron Luhn (Bitbucket: luhnatic, GitHub: Unknown)
When trying to generate HTML report (
make html
) for https://github.com/luhn/aiopg/tree/async-with in Python 3.5, I get the following exception.make report
works fine.The text was updated successfully, but these errors were encountered: