Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
87fd29eb
Commit
87fd29eb
authored
Apr 09, 2017
by
Jim Fulton
Committed by
GitHub
Apr 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Appveyor (#157)
Tests running and passing on windows.
parent
bd544349
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
8 deletions
+36
-8
appveyor.yml
appveyor.yml
+24
-0
src/ZODB/tests/testConfig.py
src/ZODB/tests/testConfig.py
+9
-7
src/ZODB/tests/testSerialize.py
src/ZODB/tests/testSerialize.py
+2
-0
src/ZODB/tests/test_fsdump.py
src/ZODB/tests/test_fsdump.py
+1
-1
No files found.
appveyor.yml
0 → 100644
View file @
87fd29eb
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
src/ZODB/tests/testConfig.py
View file @
87fd29eb
...
@@ -33,13 +33,15 @@ class ConfigTestBase(ZODB.tests.util.TestCase):
...
@@ -33,13 +33,15 @@ class ConfigTestBase(ZODB.tests.util.TestCase):
def
_test
(
self
,
s
):
def
_test
(
self
,
s
):
db
=
self
.
_opendb
(
s
)
db
=
self
.
_opendb
(
s
)
self
.
storage
=
db
.
_storage
try
:
# Do something with the database to make sure it works
self
.
storage
=
db
.
_storage
cn
=
db
.
open
()
# Do something with the database to make sure it works
rt
=
cn
.
root
()
cn
=
db
.
open
()
rt
[
"test"
]
=
1
rt
=
cn
.
root
()
transaction
.
commit
()
rt
[
"test"
]
=
1
db
.
close
()
transaction
.
commit
()
finally
:
db
.
close
()
class
ZODBConfigTest
(
ConfigTestBase
):
class
ZODBConfigTest
(
ConfigTestBase
):
...
...
src/ZODB/tests/testSerialize.py
View file @
87fd29eb
...
@@ -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
...
...
src/ZODB/tests/test_fsdump.py
View file @
87fd29eb
...
@@ -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'\
o
ffset=[0-9]+\b'
),
'offset=<OFFSET>'
),
(
re
.
compile
(
r'\
b
offset=[0-9]+\b'
),
'offset=<OFFSET>'
),
])
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment