From 7b250a5cffe1075ead51d8b46948f7bf169c07fe Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 11 Aug 2012 11:02:14 +0200 Subject: [PATCH] Revert 961a15aff2a6, this is already checked in another way. --- Lib/test/test_readline.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Lib/test/test_readline.py b/Lib/test/test_readline.py index fe74939026c..5483dd31b80 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")