From 50edab8004cf425317af64d2fb188d6f4eaf321f Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 7 Apr 2019 18:04:09 +0200 Subject: [PATCH] Add tests for reportchars=a Ref: https://github.com/pytest-dev/pytest/issues/5066 --- testing/test_terminal.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/testing/test_terminal.py b/testing/test_terminal.py index d730da666e3..2155935d43c 100644 --- a/testing/test_terminal.py +++ b/testing/test_terminal.py @@ -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"