We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19035f4 commit fd0b3e2Copy full SHA for fd0b3e2
src/_pytest/terminal.py
@@ -165,15 +165,14 @@ def getreportopt(config):
165
reportchars += "w"
166
elif config.option.disable_warnings and "w" in reportchars:
167
reportchars = reportchars.replace("w", "")
168
- if reportchars:
169
- for char in reportchars:
170
- if char == "a":
171
- reportopts = "sxXwEf"
172
- elif char == "A":
173
- reportopts = "sxXwEfpP"
174
- break
175
- elif char not in reportopts:
176
- reportopts += char
+ for char in reportchars:
+ if char == "a":
+ reportopts = "sxXwEf"
+ elif char == "A":
+ reportopts = "sxXwEfpP"
+ break
+ elif char not in reportopts:
+ reportopts += char
177
return reportopts
178
179
0 commit comments