Commit db24ed2f authored by Julien Muchembled's avatar Julien Muchembled

Fix test with ZODB >= 5.6.0

See https://github.com/zopefoundation/ZODB/pull/207
parent cb26281d
...@@ -126,7 +126,10 @@ _silly = ('__doc__',) ...@@ -126,7 +126,10 @@ _silly = ('__doc__',)
exception_type_type = type(Exception) 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): def find_global(module, name):
"""Helper for message unpickler""" """Helper for message unpickler"""
......
...@@ -97,7 +97,10 @@ _silly = ('__doc__',) ...@@ -97,7 +97,10 @@ _silly = ('__doc__',)
exception_type_type = type(Exception) 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): def find_global(module, name):
"""Helper for message unpickler""" """Helper for message unpickler"""
......
...@@ -489,6 +489,8 @@ class FileStorageHexTests(FileStorageTests): ...@@ -489,6 +489,8 @@ class FileStorageHexTests(FileStorageTests):
class FileStorageClientHexTests(FileStorageHexTests): class FileStorageClientHexTests(FileStorageHexTests):
use_extension_bytes = True
def getConfig(self): def getConfig(self):
return """\ return """\
%import ZODB.tests %import ZODB.tests
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment