From: R David Murray Date: Mon, 14 Mar 2011 21:10:22 +0000 (-0400) Subject: #11496: skip history test if clear_history is not available. X-Git-Tag: v3.2.1b1~307 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f8b9dfd9a1a3d611d43e3c3ef8031fed96c8dd25;p=python #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 5f5a90ac62..5483dd31b8 100644 --- a/Lib/test/test_readline.py +++ b/Lib/test/test_readline.py @@ -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() diff --git a/Misc/ACKS b/Misc/ACKS index a11bcf0a6d..a1197ad08b 100644 --- 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