From: Bram Moolenaar Date: Sun, 28 Feb 2016 19:13:18 +0000 (+0100) Subject: patch 7.4.1456 X-Git-Tag: v7.4.1456 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29e1951e14907b62797554ad0cc85cbbe75a1be4;p=thirdparty%2Fvim.git 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 index 154e823827..535a143782 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 <= (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 index 17d42ce564..923256b399 100644 --- a/src/version.c +++ b/src/version.c @@ -743,6 +743,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1456, /**/ 1455, /**/