summaryrefslogtreecommitdiff
path: root/tests/test_history.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_history.py')
-rwxr-xr-xtests/test_history.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test_history.py b/tests/test_history.py
index 98ae00b7..57bd0d7b 100755
--- a/tests/test_history.py
+++ b/tests/test_history.py
@@ -34,10 +34,8 @@ except ImportError:
# readline tests
#
def test_readline_remove_history_item(base_app):
- from cmd2.rl_utils import (
- readline,
- )
-
+ from cmd2.rl_utils import readline
+ readline.clear_history()
assert readline.get_current_history_length() == 0
readline.add_history('this is a test')
assert readline.get_current_history_length() == 1