#11496: skip history test if clear_history is not available.

Patch by Natalia B. Bidart.
diff --git a/Lib/test/test_readline.py b/Lib/test/test_readline.py
index 5f5a90a..5483dd3 100644
--- a/Lib/test/test_readline.py
+++ b/Lib/test/test_readline.py
@@ -12,6 +12,10 @@
 readline = import_module('readline')
 
 class TestHistoryManipulation (unittest.TestCase):
+
+    @unittest.skipIf(not hasattr(readline, 'clear_history'),
+                     "The history update test cannot be run because the "
+                     "clear_history method is not available.")
     def testHistoryUpdates(self):
         readline.clear_history()