]> granicus.if.org Git - python/commitdiff
Revert 961a15aff2a6, this is already checked in another way.
authorGeorg Brandl <georg@python.org>
Sat, 11 Aug 2012 09:02:14 +0000 (11:02 +0200)
committerGeorg Brandl <georg@python.org>
Sat, 11 Aug 2012 09:02:14 +0000 (11:02 +0200)
Lib/test/test_readline.py

index fe74939026ca7d6d4a0d1489678ab82172ac947c..5483dd31b8059bc396da3f08a5cc308df7704106 100644 (file)
@@ -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")