From f9f41e69a8aa2577dab4b5473c39734b9f7bfb2c Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 14 Apr 2019 23:47:24 +0200 Subject: [PATCH] reportopts: A: put "Pp" in front --- src/_pytest/terminal.py | 2 +- testing/test_terminal.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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):