Commit e97cb43f authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent ac028106
......@@ -31,6 +31,7 @@ from ZODB.MappingStorage import MappingStorage
from ZODB import DB
from persistent import Persistent
import transaction
from pytest import raises
inf = float('inf')
......@@ -453,6 +454,9 @@ def test_restructure():
R(z, 'T/B')
assert crack_btree(z) == (BTREE_EMPTY, [], [])
with raises(ValueError, match="new keys != old keys"):
R(z, 'T/B1')
# ø -> T/T/B (don't - we don't emit topologies with empty buckets for
# tests since ZODB breaks on them)
"""
......@@ -499,7 +503,7 @@ def test_restructure():
R(z, 'T/B1')
assert crack_btree(z) == (BTREE_ONE, ((1, X[1]),), None)
R(z, 'T/T/B1')
1/0
# tree with one not-yet committed bucket
......
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