]> granicus.if.org Git - python/commitdiff
#11496: skip history test if clear_history is not available.
authorR David Murray <rdmurray@bitdance.com>
Mon, 14 Mar 2011 21:10:22 +0000 (17:10 -0400)
committerR David Murray <rdmurray@bitdance.com>
Mon, 14 Mar 2011 21:10:22 +0000 (17:10 -0400)
Patch by Natalia B. Bidart.

Lib/test/test_readline.py
Misc/ACKS

index 5f5a90ac629fc62fc5fc455aba17db50d48e8747..5483dd31b8059bc396da3f08a5cc308df7704106 100644 (file)
@@ -12,6 +12,10 @@ from test.support import run_unittest, import_module
 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()
 
index a11bcf0a6d4eca7c402591be1489c3c93a29837e..a1197ad08b0e4490ef6094eb178d71073769c2e4 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -79,6 +79,7 @@ Eric Beser
 Steven Bethard
 Stephen Bevan
 Ron Bickers
+Natalia B. Bidart
 Adrian von Bidder
 David Binger
 Dominic Binks