summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-08-11 09:02:23 (GMT)
committerGeorg Brandl <georg@python.org>2012-08-11 09:02:23 (GMT)
commit826d5707799434a78beec02306be9b83e7af62ce (patch)
tree797ec34ae1eead5f8003ba7680b1d80ecb2a4bae
parent68fad6fb377db515f536943910895302900caa82 (diff)
parent7b250a5cffe1075ead51d8b46948f7bf169c07fe (diff)
downloadcpython-826d5707799434a78beec02306be9b83e7af62ce.zip
cpython-826d5707799434a78beec02306be9b83e7af62ce.tar.gz
cpython-826d5707799434a78beec02306be9b83e7af62ce.tar.bz2
Merge with 3.2.
-rw-r--r--Lib/test/test_readline.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/test/test_readline.py b/Lib/test/test_readline.py
index fe74939..5483dd3 100644
--- a/Lib/test/test_readline.py
+++ b/Lib/test/test_readline.py
@@ -17,9 +17,7 @@ class TestHistoryManipulation (unittest.TestCase):
"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")