-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Syntax error on assertion reinterpretation #612
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
Comments
Original comment by holger krekel (BitBucket: hpk42, GitHub: hpk42): seems like a bug in the heuristics how to find valid source code. This works fine on assert rewriting i guess, right? At some point i'd like to drop assert reinterpretation to be honest and therefore i'd like to understand why you end up using it here. |
Original comment by Alex Gaynor (BitBucket: alex_gaynor, GitHub: alex_gaynor): Sorry, my post was unclear: this fails on the default assert thing; I mixed up rewriting vs. reinterpretation |
Original comment by Alex Gaynor (BitBucket: alex_gaynor, GitHub: alex_gaynor): This is CPython on OS X. |
Original comment by Alex Gaynor (BitBucket: alex_gaynor, GitHub: alex_gaynor): Yes. |
Original comment by holger krekel (BitBucket: hpk42, GitHub: hpk42): OK, i think we need to refine the behaviour a bit:
How important it is to fix the re-interpretation error originally reported i don't know -- i would think reinterpretation is hardly used and i'd like to phase it out eventually. |
Original comment by Alex Gaynor (BitBucket: alex_gaynor, GitHub: alex_gaynor): This showed up again today: https://jenkins.cryptography.io/job/cryptography-pr-experimental/TOXENV=py34,label=windows64/2388/console |
We have now removed assertion reinterpretation so I think this can be closed. There is now a |
Originally reported by: Alex Gaynor (BitBucket: alex_gaynor, GitHub: alex_gaynor)
The function with the
assert
statement is:The specific assertion that's failing is the:
The source code that
py.test
is trying to compile is:which is clearly a syntax error :-) The exact error message from
py.test
is:I haven't been able to further minimize the failure yet.
The text was updated successfully, but these errors were encountered: