add test_warn_missing case for --assert=plain

This commit is contained in:
Gleb Nikonorov 2020-06-20 13:06:41 -04:00
parent a9d50aeab6
commit fe68c58698
1 changed files with 7 additions and 0 deletions

View File

@ -1400,6 +1400,13 @@ def test_warn_missing(testdir):
result = testdir.run(sys.executable, "-OO", "-m", "pytest")
result.stdout.fnmatch_lines(warning_output)
warning_output = [
"=*= warnings summary =*=",
"*PytestConfigWarning: ASSERTIONS ARE NOT EXECUTED and FAILING TESTS WILL PASS. Are you using python -O?",
]
result = testdir.run(sys.executable, "-OO", "-m", "pytest", "--assert=plain")
result.stdout.fnmatch_lines(warning_output)
def test_recursion_source_decode(testdir):
testdir.makepyfile(