Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r90227:cdc6aac40ecf
Date: 2017-02-20 13:12 +0100
http://bitbucket.org/pypy/pypy/changeset/cdc6aac40ecf/

Log:    skip a test, make another pass by loosening the skip condition

diff --git a/lib-python/3/test/test_readline.py 
b/lib-python/3/test/test_readline.py
--- a/lib-python/3/test/test_readline.py
+++ b/lib-python/3/test/test_readline.py
@@ -111,7 +111,8 @@
 
 class TestReadline(unittest.TestCase):
 
-    @unittest.skipIf(readline._READLINE_VERSION < 0x0601 and not is_editline,
+    @unittest.skipIf(getattr(readline, '_READLINE_VERSION', 0x0601) < 0x0601
+                     and not is_editline,
                      "not supported in this library version")
     def test_init(self):
         # Issue #19884: Ensure that the ANSI sequence "\033[1034h" is not
@@ -121,6 +122,9 @@
                                               TERM='xterm-256color')
         self.assertEqual(stdout, b'')
 
+    @unittest.skipIf(not hasattr(readline,
+                                 'set_completion_display_matches_hook'),
+                     "function not reimplemented in pypy")
     def test_nonascii(self):
         try:
             readline.add_history("\xEB\xEF")
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to