-
Notifications
You must be signed in to change notification settings - Fork 263
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
fix: Release lock before raising exception for improved recovery #5941
base: master
Are you sure you want to change the base?
fix: Release lock before raising exception for improved recovery #5941
Conversation
Could you add a test? |
I think that's more trouble than it's worth. The map already has tests and this change is just about what I consider undefined behaviour. |
If I understand correctly, previously you could call |
Your understanding is correct. I'm not against adding the test, but I’m not convinced its worth my time. |
Let me elaborate on what I meant by undefined behaviour. I can't think of a way of running into this issue from Dafny generated code. I believe the contract with the user stipulates that we provide a correct Dafny library, not one for general consumption from any Python codebase. |
That's fair.
Me neither. You could use the littish tests for it but it would feel kind of hacky because you'd have a .dfy file with no actualy Dafny instructions, just shell commands to run some Python code. |
Fixes #5913.