[Python-checkins] cpython (3.5): Issue #16182: One more check for set_pre_input_hook()

martin.panter python-checkins at python.org
Tue Jun 14 07:37:17 EDT 2016


https://hg.python.org/cpython/rev/ef234a5c5817
changeset: 102028:ef234a5c5817
branch: 3.5
parent: 102026:b1d27f36b8e1
user: Martin Panter <vadmium+py at gmail.com>
date: Tue Jun 14 11:29:31 2016 +0000
summary:
 Issue #16182: One more check for set_pre_input_hook()
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
@@ -188,7 +188,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

AltStyle によって変換されたページ (->オリジナル) /