diff --git a/src/_pytest/terminal.py b/src/_pytest/terminal.py index 6f3893653..1137d52b8 100644 --- a/src/_pytest/terminal.py +++ b/src/_pytest/terminal.py @@ -167,7 +167,7 @@ def getreportopt(config): if char not in reportopts and char != "a": reportopts += char elif char == "a": - reportopts = "fEsxXw" + reportopts = "sxXwEf" return reportopts diff --git a/testing/test_skipping.py b/testing/test_skipping.py index 231c3b6aa..6b18011b6 100644 --- a/testing/test_skipping.py +++ b/testing/test_skipping.py @@ -875,11 +875,22 @@ def test_reportchars_all(testdir): pass def test_4(): pytest.skip("four") + @pytest.fixture + def fail(): + assert 0 + def test_5(fail): + pass """ ) result = testdir.runpytest("-ra") result.stdout.fnmatch_lines( - ["FAIL*test_1*", "SKIP*four*", "XFAIL*test_2*", "XPASS*test_3*"] + [ + "SKIP*four*", + "XFAIL*test_2*", + "XPASS*test_3*", + "ERROR*test_5*", + "FAIL*test_1*", + ] )