Author: Brian Kearns <bdkea...@gmail.com>
Branch: stdlib-2.7.9
Changeset: r75032:96a806f14899
Date: 2014-12-18 23:06 -0500
http://bitbucket.org/pypy/pypy/changeset/96a806f14899/

Log:    fix test_readline version check

diff --git a/lib-python/2.7/test/test_readline.py 
b/lib-python/2.7/test/test_readline.py
--- a/lib-python/2.7/test/test_readline.py
+++ b/lib-python/2.7/test/test_readline.py
@@ -44,7 +44,8 @@
 
 class TestReadline(unittest.TestCase):
 
-    @unittest.skipIf(readline._READLINE_VERSION < 0x0600
+    @unittest.skipIf(hasattr(readline, '_READLINE_VERSION')
+                     and readline._READLINE_VERSION < 0x0600
                      and "libedit" not in readline.__doc__,
                      "not supported in this library version")
     def test_init(self):
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to