Commit 1a2e51c0 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent fe279dc1
...@@ -17,8 +17,9 @@ ...@@ -17,8 +17,9 @@
# #
# See COPYING file for full licensing terms. # See COPYING file for full licensing terms.
# See https://www.nexedi.com/licensing for rationale and options. # 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.testing import getTestDB
from wendelin.lib import testing
from persistent import Persistent, UPTODATE, GHOST, CHANGED from persistent import Persistent, UPTODATE, GHOST, CHANGED
from ZODB import DB, POSException from ZODB import DB, POSException
from BTrees.IOBTree import IOBTree from BTrees.IOBTree import IOBTree
...@@ -26,6 +27,7 @@ import transaction ...@@ -26,6 +27,7 @@ import transaction
from transaction import TransactionManager from transaction import TransactionManager
from golang import defer, func from golang import defer, func
from pytest import raises from pytest import raises
import pytest; xfail = pytest.mark.xfail
import gc import gc
testdb = None testdb = None
...@@ -231,6 +233,7 @@ def test_deactivate_btree(): ...@@ -231,6 +233,7 @@ def test_deactivate_btree():
# verify that zconn_at gives correct answer. # verify that zconn_at gives correct answer.
@xfail(zmajor < 5, reason="zconn_at is TODO for ZODB4 and ZODB3")
@func @func
def test_zconn_at(): def test_zconn_at():
stor = testdb.getZODBStorage() stor = testdb.getZODBStorage()
...@@ -306,6 +309,7 @@ def test_zconn_at(): ...@@ -306,6 +309,7 @@ def test_zconn_at():
# verify that ZODB.Connection.onResyncCallback works # verify that ZODB.Connection.onResyncCallback works
@xfail(zmajor < 5, reason="ZODB.Connection.onResyncCallback is TODO for ZODB4 and ZODB3")
@func @func
def test_zodb_onresync(): def test_zodb_onresync():
stor = testdb.getZODBStorage() stor = testdb.getZODBStorage()
...@@ -350,7 +354,10 @@ def test_zodb_onresync(): ...@@ -350,7 +354,10 @@ def test_zodb_onresync():
# test that zurl does not change from one open to another storage open. # 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(): def test_zurlstable():
if not isinstance(testdb, testing.TestDB_FileStorage):
pytest.xfail(reason="zstor_2zurl is TODO for ZEO and NEO")
zurl0 = None zurl0 = None
for i in range(10): for i in range(10):
zstor = testdb.getZODBStorage() zstor = testdb.getZODBStorage()
......
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