Skip to content

Commit 50edab8

Browse files
committed
Add tests for reportchars=a
Ref: #5066
1 parent b4b9f78 commit 50edab8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

testing/test_terminal.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -830,14 +830,20 @@ class Option(object):
830830
config.option.reportchars = "sfxw"
831831
assert getreportopt(config) == "sfx"
832832

833-
config.option.reportchars = "sfx"
833+
# Now with --disable-warnings.
834834
config.option.disable_warnings = False
835+
config.option.reportchars = "a"
836+
assert getreportopt(config) == "sxXwEf" # NOTE: "w" included!
837+
838+
config.option.reportchars = "sfx"
835839
assert getreportopt(config) == "sfxw"
836840

837841
config.option.reportchars = "sfxw"
838-
config.option.disable_warnings = False
839842
assert getreportopt(config) == "sfxw"
840843

844+
config.option.reportchars = "a"
845+
assert getreportopt(config) == "sxXwEf" # NOTE: "w" included!
846+
841847
config.option.reportchars = "A"
842848
assert getreportopt(config) == "sxXwEfpP"
843849

0 commit comments

Comments
 (0)