diff --git a/src/_pytest/terminal.py b/src/_pytest/terminal.py index 1780792b4..46d694c18 100644 --- a/src/_pytest/terminal.py +++ b/src/_pytest/terminal.py @@ -170,7 +170,7 @@ def getreportopt(config): if char == "a": reportopts = "sxXwEf" elif char == "A": - reportopts = "sxXwEfpP" + reportopts = "PpsxXwEf" break elif char not in reportopts: reportopts += char diff --git a/testing/test_terminal.py b/testing/test_terminal.py index f269fccd2..77a191a97 100644 --- a/testing/test_terminal.py +++ b/testing/test_terminal.py @@ -893,7 +893,7 @@ def test_getreportopt(): assert getreportopt(config) == "sxXwEf" # NOTE: "w" included! config.option.reportchars = "A" - assert getreportopt(config) == "sxXwEfpP" + assert getreportopt(config) == "PpsxXwEf" def test_terminalreporter_reportopt_addopts(testdir):