-
Notifications
You must be signed in to change notification settings - Fork 42
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
ok does not pass the nosetests #380
Comments
IIRC, Ok originally did exact string matching for unlocking questions, which caused issues when students entered responses that were correct, but not in the canonical form (e.g. |
Perhaps |
Ah that must be it since sumukh said "For future reference: ast.literal_eval supports addition/subtraction of integers (but not other operations/other types" on the PR |
Yep: https://bugs.python.org/issue31778 Ok I'll change the test |
I think I've tracked the error down to b605ed3#diff-c66760f0a6aa193db7eca384468b2da0 by @jathak
@jathak do you remember what you were doing in this PR? I'm pretty sure that
ast.literal_eval
can't handle the string"[1,2,3,2+2]"
since it can't handle binary operations.The text was updated successfully, but these errors were encountered: