From 2cba6b85797ba60d67389126f184aad5c9e02ff3 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 10 Jan 2018 22:46:15 +0100 Subject: bpo-29240: readline now ignores the UTF-8 Mode (#5145) Add new fuctions ignoring the UTF-8 mode: * _Py_DecodeCurrentLocale() * _Py_EncodeCurrentLocale() * _PyUnicode_DecodeCurrentLocaleAndSize() * _PyUnicode_EncodeCurrentLocale() Modify the readline module to use these functions. Re-enable test_readline.test_nonascii(). --- Lib/test/test_readline.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'Lib/test/test_readline.py') diff --git a/Lib/test/test_readline.py b/Lib/test/test_readline.py index 28ea38b747..b4c25dee9d 100644 --- a/Lib/test/test_readline.py +++ b/Lib/test/test_readline.py @@ -152,8 +152,6 @@ print("History length:", readline.get_current_history_length()) output = run_pty(self.auto_history_script.format(False)) self.assertIn(b"History length: 0\r\n", output) - @unittest.skipIf(True, - "FIXME: test broken by bpo-29240") def test_nonascii(self): try: readline.add_history("\xEB\xEF") -- cgit v1.2.1