Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
1a2e51c0
Commit
1a2e51c0
authored
Apr 15, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
fe279dc1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
lib/tests/test_zodb.py
lib/tests/test_zodb.py
+8
-1
No files found.
lib/tests/test_zodb.py
View file @
1a2e51c0
...
...
@@ -17,8 +17,9 @@
#
# See COPYING file for full licensing terms.
# See https://www.nexedi.com/licensing for rationale and options.
from
wendelin.lib.zodb
import
LivePersistent
,
deactivate_btree
,
dbclose
,
zconn_at
,
zstor_2zurl
from
wendelin.lib.zodb
import
LivePersistent
,
deactivate_btree
,
dbclose
,
zconn_at
,
zstor_2zurl
,
zmajor
from
wendelin.lib.testing
import
getTestDB
from
wendelin.lib
import
testing
from
persistent
import
Persistent
,
UPTODATE
,
GHOST
,
CHANGED
from
ZODB
import
DB
,
POSException
from
BTrees.IOBTree
import
IOBTree
...
...
@@ -26,6 +27,7 @@ import transaction
from
transaction
import
TransactionManager
from
golang
import
defer
,
func
from
pytest
import
raises
import
pytest
;
xfail
=
pytest
.
mark
.
xfail
import
gc
testdb
=
None
...
...
@@ -231,6 +233,7 @@ def test_deactivate_btree():
# verify that zconn_at gives correct answer.
@
xfail
(
zmajor
<
5
,
reason
=
"zconn_at is TODO for ZODB4 and ZODB3"
)
@
func
def
test_zconn_at
():
stor
=
testdb
.
getZODBStorage
()
...
...
@@ -306,6 +309,7 @@ def test_zconn_at():
# verify that ZODB.Connection.onResyncCallback works
@
xfail
(
zmajor
<
5
,
reason
=
"ZODB.Connection.onResyncCallback is TODO for ZODB4 and ZODB3"
)
@
func
def
test_zodb_onresync
():
stor
=
testdb
.
getZODBStorage
()
...
...
@@ -350,7 +354,10 @@ def test_zodb_onresync():
# test that zurl does not change from one open to another storage open.
#@xfail(not isinstance(testdb, testing.TestDB_FileStorage), reason="zstor_2zurl is TODO for ZEO and NEO")
def
test_zurlstable
():
if
not
isinstance
(
testdb
,
testing
.
TestDB_FileStorage
):
pytest
.
xfail
(
reason
=
"zstor_2zurl is TODO for ZEO and NEO"
)
zurl0
=
None
for
i
in
range
(
10
):
zstor
=
testdb
.
getZODBStorage
()
...
...
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