diff options
author | R David Murray <rdmurray@bitdance.com> | 2011-03-14 21:10:22 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2011-03-14 21:10:22 (GMT) |
commit | f8b9dfd9a1a3d611d43e3c3ef8031fed96c8dd25 (patch) | |
tree | fd5068beb6d2af370078518dd5034e5518c9ebc3 | |
parent | 525c25d42f8740111d14b9f8ca56cc2762175eaf (diff) | |
download | cpython-f8b9dfd9a1a3d611d43e3c3ef8031fed96c8dd25.zip cpython-f8b9dfd9a1a3d611d43e3c3ef8031fed96c8dd25.tar.gz cpython-f8b9dfd9a1a3d611d43e3c3ef8031fed96c8dd25.tar.bz2 |
#11496: skip history test if clear_history is not available.
Patch by Natalia B. Bidart.
-rw-r--r-- | Lib/test/test_readline.py | 4 | ||||
-rw-r--r-- | Misc/ACKS | 1 |
2 files changed, 5 insertions, 0 deletions
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 @@ 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() @@ -79,6 +79,7 @@ Eric Beser Steven Bethard Stephen Bevan Ron Bickers +Natalia B. Bidart Adrian von Bidder David Binger Dominic Binks |