Hi list and Bram.
I found test87 failed with python 3.5.1,
and make a workaround it.
Please check attached patch.
Best.
--
MURAOKA Taro <[email protected]>
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/testdir/test87.in b/src/testdir/test87.in
index 154e823..535a143 100644
--- a/src/testdir/test87.in
+++ b/src/testdir/test87.in
@@ -228,6 +228,8 @@ def ee(expr, g=globals(), l=locals()):
cb.append(expr + ':' + repr((e.__class__, TypeError(msg))))
else:
cb.append(expr + ':' + repr((e.__class__, e)))
+ elif sys.version_info >= (3, 5) and e.__class__ is ValueError and
str(e) == 'embedded null byte':
+ msg = cb.append(expr + ':' + repr((TypeError,
TypeError('expected bytes with no null'))))
else:
cb.append(expr + ':' + repr((e.__class__, e)))
else:
@@ -264,13 +266,17 @@ EOF
:let messages=[]
:delfunction DictNew
py3 <<EOF
+import sys
d=vim.bindeval('{}')
m=vim.bindeval('messages')
def em(expr, g=globals(), l=locals()):
try:
exec(expr, g, l)
except Exception as e:
- m.extend([e.__class__.__name__])
+ if sys.version_info >= (3, 5) and e.__class__ is ValueError and str(e)
== 'embedded null byte':
+ m.extend([TypeError.__name__])
+ else:
+ m.extend([e.__class__.__name__])
em('d["abc1"]')
em('d["abc1"]="\\0"')