summaryrefslogtreecommitdiff
path: root/Lib/test/test_readline.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_readline.py')
-rw-r--r--Lib/test/test_readline.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/test/test_readline.py b/Lib/test/test_readline.py
index fe74939026..5483dd31b8 100644
--- a/Lib/test/test_readline.py
+++ b/Lib/test/test_readline.py
@@ -17,9 +17,7 @@ class TestHistoryManipulation (unittest.TestCase):
"The history update test cannot be run because the "
"clear_history method is not available.")
def testHistoryUpdates(self):
- # Some GNU versions of readline do not support clear_history
- if hasattr('readline', 'clear_history'):
- readline.clear_history()
+ readline.clear_history()
readline.add_history("first line")
readline.add_history("second line")