Skip to content

Commit

Permalink
Add tests for reportchars=a
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Apr 7, 2019
1 parent b4b9f78 commit 50edab8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions testing/test_terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -830,14 +830,20 @@ class Option(object):
config.option.reportchars = "sfxw"
assert getreportopt(config) == "sfx"

config.option.reportchars = "sfx"
# Now with --disable-warnings.
config.option.disable_warnings = False
config.option.reportchars = "a"
assert getreportopt(config) == "sxXwEf" # NOTE: "w" included!

config.option.reportchars = "sfx"
assert getreportopt(config) == "sfxw"

config.option.reportchars = "sfxw"
config.option.disable_warnings = False
assert getreportopt(config) == "sfxw"

config.option.reportchars = "a"
assert getreportopt(config) == "sxXwEf" # NOTE: "w" included!

config.option.reportchars = "A"
assert getreportopt(config) == "sxXwEfpP"

Expand Down

0 comments on commit 50edab8

Please sign in to comment.