Issue #22773: fix failing test with old readline versions due to issue #19884.

This commit is contained in:
Antoine Pitrou 2014-11-04 14:52:10 +01:00
parent 1ea070e561
commit 7e8b8678f1
2 changed files with 8 additions and 0 deletions

View file

@ -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