diff options
| author | Georg Brandl <georg@python.org> | 2012-08-11 10:59:45 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2012-08-11 10:59:45 +0200 |
| commit | 68fad6fb377db515f536943910895302900caa82 (patch) | |
| tree | eadc343c20fc27049ac730dfcbf251eb68aafeee | |
| parent | 675a77d8fbddf19737c7c8606e44343c0945df40 (diff) | |
| parent | 22bfa37ed06e829bbc2e6a247648693983e2be57 (diff) | |
| download | cpython-git-68fad6fb377db515f536943910895302900caa82.tar.gz | |
Merge with 3.2.
| -rw-r--r-- | Lib/test/test_readline.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_readline.py b/Lib/test/test_readline.py index 5483dd31b8..fe74939026 100644 --- a/Lib/test/test_readline.py +++ b/Lib/test/test_readline.py @@ -17,7 +17,9 @@ class TestHistoryManipulation (unittest.TestCase): "The history update test cannot be run because the " "clear_history method is not available.") def testHistoryUpdates(self): - readline.clear_history() + # Some GNU versions of readline do not support clear_history + if hasattr('readline', 'clear_history'): + readline.clear_history() readline.add_history("first line") readline.add_history("second line") |
