rename --assertmode choices to be more explicit

This commit is contained in:
Benjamin Peterson
2011-06-29 09:44:04 -05:00
parent 48b76c7544
commit aa7f7a1c71
2 changed files with 14 additions and 14 deletions

View File

@@ -182,7 +182,7 @@ def test_assertion_options(testdir):
for opt in off_options:
result = testdir.runpytest(*opt)
assert "3 == 4" not in result.stdout.str()
for mode in "on", "old":
for mode in "rewrite", "reinterp":
for other_opt in off_options[:3]:
opt = ("--assertmode=" + mode,) + other_opt
result = testdir.runpytest(*opt)
@@ -194,7 +194,7 @@ def test_old_assert_mode(testdir):
def test_in_old_mode():
assert "@py_builtins" not in globals()
""")
result = testdir.runpytest("--assertmode=old")
result = testdir.runpytest("--assertmode=reinterp")
assert result.ret == 0
def test_triple_quoted_string_issue113(testdir):