MCPcopy Create free account
hub / github.com/PyTables/PyTables / test06b_removeLeaf

Method test06b_removeLeaf

tables/tests/test_basics.py:355–366  ·  view source on GitHub ↗

Checking removing Leaves from an existing file.

(self)

Source from the content-addressed store, hash-verified

353 self.h5file.root.agroup2
354
355 def test06b_removeLeaf(self):
356 """Checking removing Leaves from an existing file."""
357
358 self._reopen(mode="r+", node_cache_slots=self.node_cache_slots)
359 self.h5file.remove_node(self.h5file.root, "anarray")
360
361 # Open this file in read-only mode
362 self._reopen(node_cache_slots=self.node_cache_slots)
363
364 # Try to get the removed object
365 with self.assertRaises(LookupError):
366 self.h5file.root.anarray
367
368 def test06c_removeLeaf(self):
369 """Checking removing Leaves and access it immediately."""

Callers

nothing calls this directly

Calls 2

remove_nodeMethod · 0.80
_reopenMethod · 0.45

Tested by

no test coverage detected