Commit 7a1a4911 authored by Jim Fulton's avatar Jim Fulton Committed by Julien Muchembled

Appveyor (#157) including a fix for Python 3.6

Tests running and passing on windows.

(cherry picked from commit 87fd29eb83512c177854d9aab3d998478192797c)
parent 5b6c92a2
environment:
matrix:
- python: 27
- python: 27-x64
- python: 34
- python: 34-x64
- python: 35
- python: 35-x64
- python: 36
- python: 36-x64
install:
- "SET PATH=C:\\Python%PYTHON%;c:\\Python%PYTHON%\\scripts;%PATH%"
- echo "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 > "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\vcvars64.bat"
- pip install -e .
- pip install zope.testrunner zope.testing manuel
- pip install zc.buildout zc.recipe.testrunner zc.recipe.egg
build_script:
- buildout bootstrap
- bin\buildout parts=test
test_script:
- bin\test -vvv
...@@ -33,12 +33,14 @@ class ConfigTestBase(ZODB.tests.util.TestCase): ...@@ -33,12 +33,14 @@ class ConfigTestBase(ZODB.tests.util.TestCase):
def _test(self, s): def _test(self, s):
db = self._opendb(s) db = self._opendb(s)
try:
self.storage = db._storage self.storage = db._storage
# Do something with the database to make sure it works # Do something with the database to make sure it works
cn = db.open() cn = db.open()
rt = cn.root() rt = cn.root()
rt["test"] = 1 rt["test"] = 1
transaction.commit() transaction.commit()
finally:
db.close() db.close()
......
...@@ -18,6 +18,8 @@ import unittest ...@@ -18,6 +18,8 @@ import unittest
from persistent import Persistent from persistent import Persistent
from persistent.wref import WeakRef from persistent.wref import WeakRef
import zope.testing.setupstack
import ZODB.tests.util import ZODB.tests.util
from ZODB import serialize from ZODB import serialize
from ZODB._compat import Pickler, PersistentUnpickler, BytesIO, _protocol, IS_JYTHON from ZODB._compat import Pickler, PersistentUnpickler, BytesIO, _protocol, IS_JYTHON
......
...@@ -80,7 +80,7 @@ checker = renormalizing.RENormalizing([ ...@@ -80,7 +80,7 @@ checker = renormalizing.RENormalizing([
# Python 3 produces larger pickles, even when we use zodbpickle :( # Python 3 produces larger pickles, even when we use zodbpickle :(
# this changes all the offsets and sizes # this changes all the offsets and sizes
(re.compile(r'\bsize=[0-9]+\b'), 'size=<SIZE>'), (re.compile(r'\bsize=[0-9]+\b'), 'size=<SIZE>'),
(re.compile(r'\offset=[0-9]+\b'), 'offset=<OFFSET>'), (re.compile(r'\boffset=[0-9]+\b'), 'offset=<OFFSET>'),
]) ])
......
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