Commit d535f533 authored by Tres Seaver's avatar Tres Seaver Committed by GitHub

Merge pull request #159 from zopefoundation/zodb-pr207

Fix tests with ZODB >= 5.6.0.
parents cb26281d 503dccb1
...@@ -7,9 +7,12 @@ bin ...@@ -7,9 +7,12 @@ bin
develop-eggs develop-eggs
eggs eggs
parts parts
pyvenv.cfg
testing.log testing.log
.dir-locals.el .dir-locals.el
data.fs* data.fs*
ZEO_forker*.conf ZEO_forker*.conf
.eggs/ .eggs/
doc/_build doc/_build
lib/
lib64
...@@ -5,8 +5,6 @@ matrix: ...@@ -5,8 +5,6 @@ matrix:
python: 2.7 python: 2.7
- os: linux - os: linux
python: pypy python: pypy
- os: linux
python: 3.4
- os: linux - os: linux
python: 3.5 python: 3.5
- os: linux - os: linux
......
...@@ -4,6 +4,8 @@ Changelog ...@@ -4,6 +4,8 @@ Changelog
5.2.2 (unreleased) 5.2.2 (unreleased)
------------------ ------------------
- Remove support for Python 3.4
- Provide proper CA test certificates to allow the SSL tests succeed for Py3 - Provide proper CA test certificates to allow the SSL tests succeed for Py3
- Replace deprecated occurences of ``Thread.isAlive()`` by ``Thread.is_alive()`` - Replace deprecated occurences of ``Thread.isAlive()`` by ``Thread.is_alive()``
......
...@@ -35,7 +35,7 @@ tests_require = [ ...@@ -35,7 +35,7 @@ tests_require = [
'manuel', 'manuel',
'random2', 'random2',
'mock', 'mock',
'msgpack < 0.6', 'msgpack < 1',
'zope.testrunner', 'zope.testrunner',
] ]
...@@ -45,7 +45,6 @@ License :: OSI Approved :: Zope Public License ...@@ -45,7 +45,6 @@ License :: OSI Approved :: Zope Public License
Programming Language :: Python :: 2 Programming Language :: Python :: 2
Programming Language :: Python :: 2.7 Programming Language :: Python :: 2.7
Programming Language :: Python :: 3 Programming Language :: Python :: 3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5 Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6 Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.7
...@@ -157,5 +156,5 @@ setup(name="ZEO", ...@@ -157,5 +156,5 @@ setup(name="ZEO",
zeo-nagios = ZEO.nagios:main zeo-nagios = ZEO.nagios:main
""", """,
include_package_data=True, include_package_data=True,
python_requires='>=2.7.9,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*', python_requires='>=2.7.9,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*',
) )
...@@ -66,7 +66,7 @@ def decoder(protocol): ...@@ -66,7 +66,7 @@ def decoder(protocol):
from msgpack import unpackb from msgpack import unpackb
def msgpack_decode(data): def msgpack_decode(data):
"""Decodes msg and returns its parts""" """Decodes msg and returns its parts"""
return unpackb(data, encoding='utf-8', use_list=False) return unpackb(data, raw=False, use_list=False)
return msgpack_decode return msgpack_decode
else: else:
assert protocol[:1] == b'Z' assert protocol[:1] == b'Z'
...@@ -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
......
[tox] [tox]
envlist = envlist =
py27,py34,py35,py36,py37,pypy,pypy3,simple,docs py27,py35,py36,py37,pypy,pypy3,simple,docs
[testenv] [testenv]
commands = commands =
...@@ -21,19 +21,21 @@ deps = ...@@ -21,19 +21,21 @@ deps =
zope.testing zope.testing
zope.testrunner zope.testrunner
mock mock
msgpack msgpack < 1
# ZopeUndo is needed as soft-dependency for a regression test # ZopeUndo is needed as soft-dependency for a regression test
ZopeUndo ZopeUndo
[testenv:simple] [testenv:simple]
# Test that 'setup.py test' works # Test that 'setup.py test' works
basepython = basepython =
python3.4 python3.6
commands = commands =
python setup.py -q test -q python setup.py -q test -q
deps = {[testenv]deps} deps = {[testenv]deps}
[testenv:docs] [testenv:docs]
basepython = basepython =
python3.8 python3.6
commands = commands =
sphinx-build -b html doc doc/_build/html sphinx-build -b html doc doc/_build/html
extras = extras =
......
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