update assertion option names

This commit is contained in:
Benjamin Peterson 2011-07-10 21:02:36 -05:00
parent 59067684cd
commit 8cd68494bf
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ def interpret(source, frame, should_fail=False):
if should_fail: if should_fail:
return ("(assertion failed, but when it was re-run for " return ("(assertion failed, but when it was re-run for "
"printing intermediate values, it did not fail. Suggestions: " "printing intermediate values, it did not fail. Suggestions: "
"compute assert expression before the assert or use --no-assert)") "compute assert expression before the assert or use --assert=plain)")
def run(offending_line, frame=None): def run(offending_line, frame=None):
if frame is None: if frame is None:

View File

@ -482,7 +482,7 @@ def interpret(source, frame, should_fail=False):
if should_fail: if should_fail:
return ("(assertion failed, but when it was re-run for " return ("(assertion failed, but when it was re-run for "
"printing intermediate values, it did not fail. Suggestions: " "printing intermediate values, it did not fail. Suggestions: "
"compute assert expression before the assert or use --nomagic)") "compute assert expression before the assert or use --assert=plain)")
else: else:
return None return None