Merge pull request #5119 from blueyed/reportopts-A-order

reportopts: A: put "Pp" in front
This commit is contained in:
Daniel Hahler
2019-05-24 18:28:43 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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):