diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-04-09 16:37:46 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-04-09 16:37:46 -0400 |
commit | d815d2cd19a24bac89bd19416fb2b7cd0dadfe03 (patch) | |
tree | 2570d13b2561822911b000b36519be742ec89345 /tests/test_cmd2.py | |
parent | 0d4be64b6ec76fcf5f87933293dbc7c134a32cf0 (diff) | |
download | cmd2-git-d815d2cd19a24bac89bd19416fb2b7cd0dadfe03.tar.gz |
Initial commit of table creation API
Diffstat (limited to 'tests/test_cmd2.py')
-rwxr-xr-x | tests/test_cmd2.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index b86ddfa6..bb99e15b 100755 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -166,10 +166,8 @@ def test_set_allow_style(base_app, new_val, is_valid, expected): assert not err assert "now: {!r}".format(new_val.capitalize()) in out[1] - # Reload ansi module to reset allow_style to its default since it's an - # application-wide setting that can affect other unit tests. - import importlib - importlib.reload(ansi) + # Reset allow_style to its default since it's an application-wide setting that can affect other unit tests + ansi.allow_style = ansi.STYLE_TERMINAL class OnChangeHookApp(cmd2.Cmd): |