diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-06-25 14:05:20 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-06-25 14:05:20 -0400 |
commit | 36c310f9311bc9a48428950a9532934ffc3f45f2 (patch) | |
tree | bca883bb615f421e7b53e41f915723a76fd818e3 /tests/test_cmd2.py | |
parent | 87cd9aba00dde219a7b2e5e7d9fdd1c1a73c287a (diff) | |
download | cmd2-git-36c310f9311bc9a48428950a9532934ffc3f45f2.tar.gz |
Replaced more pexcept uses with perror
Diffstat (limited to 'tests/test_cmd2.py')
-rw-r--r-- | tests/test_cmd2.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index dac034ef..f4c8d3e7 100644 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -1901,14 +1901,14 @@ class ColorsApp(cmd2.Cmd): def do_echo(self, args): self.poutput(args) - self.pexcept(args, traceback_war=False) + self.perror(args) def do_echo_error(self, args): color_on = Fore.RED + Back.BLACK color_off = Style.RESET_ALL self.poutput(color_on + args + color_off) - # pexcept uses colors by default - self.pexcept(args, traceback_war=False) + # perror uses colors by default + self.perror(args) def test_colors_default(): app = ColorsApp() |