[Python-checkins] cpython (merge 3.2 -> default): Merge with 3.2.

georg.brandl python-checkins at python.org
Sat Aug 11 11:02:10 CEST 2012


http://hg.python.org/cpython/rev/a07d0ff419c2
changeset:   78501:a07d0ff419c2
parent:      78499:36563c91e585
parent:      78500:e9e9f3e46148
user:        Georg Brandl <georg at python.org>
date:        Sat Aug 11 11:02:23 2012 +0200
summary:
  Merge with 3.2.

files:
  Lib/test/test_readline.py |  4 +---
  1 files changed, 1 insertions(+), 3 deletions(-)


diff --git a/Lib/test/test_readline.py b/Lib/test/test_readline.py
--- a/Lib/test/test_readline.py
+++ b/Lib/test/test_readline.py
@@ -17,9 +17,7 @@
                      "The history update test cannot be run because the "
                      "clear_history method is not available.")
     def testHistoryUpdates(self):
-        # Some GNU versions of readline do not support clear_history
-        if hasattr('readline', 'clear_history'):
-            readline.clear_history()
+        readline.clear_history()
 
         readline.add_history("first line")
         readline.add_history("second line")

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list