[Python-checkins] cpython (merge 3.5 -> default): Issue #16182: Merge test_readline from 3.5
martin.panter
python-checkins at python.org
Tue Jun 14 07:37:17 EDT 2016
https://hg.python.org/cpython/rev/241bae60cef8
changeset: 102029:241bae60cef8
parent: 102027:b907321fec78
parent: 102028:ef234a5c5817
user: Martin Panter <vadmium+py at gmail.com>
date: Tue Jun 14 11:31:39 2016 +0000
summary:
Issue #16182: Merge test_readline from 3.5
files:
Lib/test/test_readline.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_readline.py b/Lib/test/test_readline.py
--- a/Lib/test/test_readline.py
+++ b/Lib/test/test_readline.py
@@ -203,7 +203,7 @@
self.assertIn(b"text 't\\xeb'\r\n", output)
self.assertIn(b"line '[\\xefnserted]|t\\xeb[after]'\r\n", output)
self.assertIn(b"indexes 11 13\r\n", output)
- if not is_editline: # display() hook not called under Editline
+ if not is_editline and hasattr(readline, "set_pre_input_hook"):
self.assertIn(b"substitution 't\\xeb'\r\n", output)
self.assertIn(b"matches ['t\\xebnt', 't\\xebxt']\r\n", output)
expected = br"'[\xefnserted]|t\xebxt[after]'"
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list