Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Leap:42.3:Staging:A
vim
vim-python35.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File vim-python35.patch of Package vim
Index: vim74/src/testdir/test87.in =================================================================== --- vim74.orig/src/testdir/test87.in +++ vim74/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,14 +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"') em('d["abc1"]=vim')
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor