assertoutcomes() only accepts plural forms

Fix #6505
This commit is contained in:
Bruno Oliveira
2020-06-13 10:24:44 -03:00
parent f551cab877
commit 3151219785
4 changed files with 80 additions and 12 deletions

View File

@@ -4342,6 +4342,6 @@ def test_yield_fixture_with_no_value(testdir):
)
expected = "E ValueError: custom did not yield a value"
result = testdir.runpytest()
result.assert_outcomes(error=1)
result.assert_outcomes(errors=1)
result.stdout.fnmatch_lines([expected])
assert result.ret == ExitCode.TESTS_FAILED