diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2014-11-04 13:53:01 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2014-11-04 13:53:01 (GMT) |
commit | d39e199a0d49504583c5672252f653fc01837e32 (patch) | |
tree | bc12821b7d815aed6bf70d4421215aac3609ce8c /Lib | |
parent | 98e1b9158ce950e7448ab3860bc556002b8a8e4a (diff) | |
parent | 7e8b8678f141d4e8198002972219895280b2d62d (diff) | |
download | cpython-d39e199a0d49504583c5672252f653fc01837e32.zip cpython-d39e199a0d49504583c5672252f653fc01837e32.tar.gz cpython-d39e199a0d49504583c5672252f653fc01837e32.tar.bz2 |
Issue #22773: fix failing test with old readline versions due to issue #19884.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_readline.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_readline.py b/Lib/test/test_readline.py index 8b77818..d2a11f2 100644 --- a/Lib/test/test_readline.py +++ b/Lib/test/test_readline.py @@ -44,6 +44,10 @@ class TestHistoryManipulation (unittest.TestCase): class TestReadline(unittest.TestCase): + + @unittest.skipIf(readline._READLINE_VERSION < 0x0600 + and "libedit" not in readline.__doc__, + "not supported in this library version") def test_init(self): # Issue #19884: Ensure that the ANSI sequence "\033[1034h" is not # written into stdout when the readline module is imported and stdout |