summaryrefslogtreecommitdiff
path: root/tests/test_cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-04-09 16:37:46 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2020-04-09 16:37:46 -0400
commitd815d2cd19a24bac89bd19416fb2b7cd0dadfe03 (patch)
tree2570d13b2561822911b000b36519be742ec89345 /tests/test_cmd2.py
parent0d4be64b6ec76fcf5f87933293dbc7c134a32cf0 (diff)
downloadcmd2-git-d815d2cd19a24bac89bd19416fb2b7cd0dadfe03.tar.gz
Initial commit of table creation API
Diffstat (limited to 'tests/test_cmd2.py')
-rwxr-xr-xtests/test_cmd2.py6
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):