From 8cd68494bf64579bb0bbca20c00217cf966b5c11 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 10 Jul 2011 21:02:36 -0500 Subject: [PATCH] update assertion option names --- _pytest/assertion/newinterpret.py | 2 +- _pytest/assertion/oldinterpret.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_pytest/assertion/newinterpret.py b/_pytest/assertion/newinterpret.py index 2696abda7..de03eaf8b 100644 --- a/_pytest/assertion/newinterpret.py +++ b/_pytest/assertion/newinterpret.py @@ -53,7 +53,7 @@ def interpret(source, frame, should_fail=False): if should_fail: return ("(assertion failed, but when it was re-run for " "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): if frame is None: diff --git a/_pytest/assertion/oldinterpret.py b/_pytest/assertion/oldinterpret.py index e10987141..3ca12ec2b 100644 --- a/_pytest/assertion/oldinterpret.py +++ b/_pytest/assertion/oldinterpret.py @@ -482,7 +482,7 @@ def interpret(source, frame, should_fail=False): if should_fail: return ("(assertion failed, but when it was re-run for " "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: return None