# HG changeset patch # User Christian Brabandt # Date 1456686904 -3600 # Node ID 0a55dd3814104181acb0c486e28d29e579db7773 # Parent a475e36a18e6459662f5c3d2139f689e30c54579 commit https://github.com/vim/vim/commit/29e1951e14907b62797554ad0cc85cbbe75a1be4 Author: Bram Moolenaar Date: Sun Feb 28 20:13:18 2016 +0100 patch 7.4.1456 Problem: Test 87 fails with Python 3.5. Solution: Work around difference. (Taro Muraoka) diff --git a/src/testdir/test87.in b/src/testdir/test87.in --- 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 <= (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"') diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -744,6 +744,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1456, +/**/ 1455, /**/ 1454,