diff options
Diffstat (limited to 'larch/tree_tests.py')
-rw-r--r-- | larch/tree_tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/larch/tree_tests.py b/larch/tree_tests.py index 86895f0..8a4a4e9 100644 --- a/larch/tree_tests.py +++ b/larch/tree_tests.py @@ -67,7 +67,7 @@ class BTreeTests(unittest.TestCase): # We use a small node size so that all code paths are traversed # during testing. Use coverage.py to make sure they do. self.codec = larch.NodeCodec(3) - self.ns = DummyNodeStore(64, self.codec) + self.ns = DummyNodeStore(allow_writes=True, node_size=64, codec=self.codec) self.forest = DummyForest() self.tree = larch.BTree(self.forest, self.ns, None) self.dump = False @@ -549,7 +549,7 @@ class BTreeDecrementTests(unittest.TestCase): # We use a small node size so that all code paths are traversed # during testing. Use coverage.py to make sure they do. self.codec = larch.NodeCodec(3) - self.ns = DummyNodeStore(64, self.codec) + self.ns = DummyNodeStore(allow_writes=True, node_size=64, codec=self.codec) self.forest = DummyForest() self.tree = larch.BTree(self.forest, self.ns, None) self.tree.insert('foo', 'bar') @@ -574,7 +574,7 @@ class BTreeDecrementTests(unittest.TestCase): class BTreeBalanceTests(unittest.TestCase): def setUp(self): - ns = DummyNodeStore(4096, larch.NodeCodec(2)) + ns = DummyNodeStore(allow_writes=True, node_size=4096, codec=larch.NodeCodec(2)) forest = DummyForest() self.tree = larch.BTree(forest, ns, None) self.keys = ['%02d' % i for i in range(10)] |