diff options
author | Georg Brandl <georg@python.org> | 2012-08-11 09:08:04 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2012-08-11 09:08:04 (GMT) |
commit | d26b658f1433a28b611906c078f47bc804a63dd1 (patch) | |
tree | 719340d921f295da56ebf71e8e8fae5e1b81e599 /Lib/test/test_readline.py | |
parent | 2d639d5665739886e2044b2c92d2e157ee0161aa (diff) | |
parent | f8b9dfd9a1a3d611d43e3c3ef8031fed96c8dd25 (diff) | |
download | cpython-d26b658f1433a28b611906c078f47bc804a63dd1.zip cpython-d26b658f1433a28b611906c078f47bc804a63dd1.tar.gz cpython-d26b658f1433a28b611906c078f47bc804a63dd1.tar.bz2 |
Graft a89d654adaa2 from 3.2 branch. Fixes #15620.
Diffstat (limited to 'Lib/test/test_readline.py')
-rw-r--r-- | Lib/test/test_readline.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_readline.py b/Lib/test/test_readline.py index 11045c8..945c7f4 100644 --- a/Lib/test/test_readline.py +++ b/Lib/test/test_readline.py @@ -12,6 +12,10 @@ from test.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() |