Skip to content

Commit

Permalink
Fix test with ZODB >= 5.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jmuchemb committed Jun 11, 2020
1 parent cb26281 commit db24ed2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/ZEO/asyncio/marshal.py
Expand Up @@ -126,7 +126,10 @@ def reduce_exception(exc):

exception_type_type = type(Exception)

_SAFE_MODULE_NAMES = ('ZopeUndo.Prefix', 'copy_reg', '__builtin__', 'zodbpickle')
_SAFE_MODULE_NAMES = (
'ZopeUndo.Prefix', 'zodbpickle',
'builtins', 'copy_reg', '__builtin__',
)

def find_global(module, name):
"""Helper for message unpickler"""
Expand Down
5 changes: 4 additions & 1 deletion src/ZEO/tests/ZEO4/zrpc/marshal.py
Expand Up @@ -97,7 +97,10 @@ def server_decode(msg):

exception_type_type = type(Exception)

_SAFE_MODULE_NAMES = ('ZopeUndo.Prefix', 'copy_reg', '__builtin__', 'zodbpickle')
_SAFE_MODULE_NAMES = (
'ZopeUndo.Prefix', 'zodbpickle',
'builtins', 'copy_reg', '__builtin__',
)

def find_global(module, name):
"""Helper for message unpickler"""
Expand Down
2 changes: 2 additions & 0 deletions src/ZEO/tests/testZEO.py
Expand Up @@ -489,6 +489,8 @@ def getConfig(self):

class FileStorageClientHexTests(FileStorageHexTests):

use_extension_bytes = True

def getConfig(self):
return """\
%import ZODB.tests
Expand Down

0 comments on commit db24ed2

Please sign in to comment.