mirror of
https://github.com/python/cpython.git
synced 2025-09-29 03:35:31 +00:00
Merge with 3.2.
This commit is contained in:
commit
826d570779
1 changed files with 1 additions and 3 deletions
|
@ -17,9 +17,7 @@ class TestHistoryManipulation (unittest.TestCase):
|
||||||
"The history update test cannot be run because the "
|
"The history update test cannot be run because the "
|
||||||
"clear_history method is not available.")
|
"clear_history method is not available.")
|
||||||
def testHistoryUpdates(self):
|
def testHistoryUpdates(self):
|
||||||
# Some GNU versions of readline do not support clear_history
|
readline.clear_history()
|
||||||
if hasattr('readline', 'clear_history'):
|
|
||||||
readline.clear_history()
|
|
||||||
|
|
||||||
readline.add_history("first line")
|
readline.add_history("first line")
|
||||||
readline.add_history("second line")
|
readline.add_history("second line")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue