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

Method test06c_removeLeaf

tables/tests/test_basics.py:368–376  ·  view source on GitHub ↗

Checking removing Leaves and access it immediately.

(self)

Source from the content-addressed store, hash-verified

366 self.h5file.root.anarray
367
368 def test06c_removeLeaf(self):
369 """Checking removing Leaves and access it immediately."""
370
371 self._reopen(mode="r+", node_cache_slots=self.node_cache_slots)
372 self.h5file.remove_node(self.h5file.root, "anarray")
373
374 # Try to get the removed object
375 with self.assertRaises(LookupError):
376 self.h5file.root.anarray
377
378 def test06d_removeLeaf(self):
379 """Checking removing a non-existent node"""

Callers

nothing calls this directly

Calls 2

remove_nodeMethod · 0.80
_reopenMethod · 0.45

Tested by

no test coverage detected