Merge with 3.2.
This commit is contained in:
commit
68fad6fb37
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue