cpython: 961a15aff2a6 (original) (raw)

Mercurial > cpython

changeset 78498:961a15aff2a6 3.2

Closes #15620: check for presence of readline.clear_history(), which is apparently missing on some readline versions, before calling it in the test. [#15620]

Georg Brandl georg@python.org
date Sat, 11 Aug 2012 10:59:23 +0200
parents 45ef9bc8739f
children 36563c91e585 e9e9f3e46148
files Lib/test/test_readline.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-)[+] [-] Lib/test/test_readline.py 4

line wrap: on

line diff

--- a/Lib/test/test_readline.py +++ b/Lib/test/test_readline.py @@ -17,7 +17,9 @@ class TestHistoryManipulation (unittest. "The history update test cannot be run because the " "clear_history method is not available.") def testHistoryUpdates(self):

readline.add_history("first line") readline.add_history("second line")