MCPcopy Index your code
hub / github.com/PyTables/PyTables / test06d_removeLeaf

Method test06d_removeLeaf

tables/tests/test_basics.py:378–385  ·  view source on GitHub ↗

Checking removing a non-existent node

(self)

Source from the content-addressed store, hash-verified

376 self.h5file.root.anarray
377
378 def test06d_removeLeaf(self):
379 """Checking removing a non-existent node"""
380
381 self._reopen(mode="r+", node_cache_slots=self.node_cache_slots)
382
383 # Try to get the removed object
384 with self.assertRaises(LookupError):
385 self.h5file.remove_node(self.h5file.root, "nonexistent")
386
387 def test06e_removeTable(self):
388 """Checking removing Tables from an existing file."""

Callers

nothing calls this directly

Calls 2

remove_nodeMethod · 0.80
_reopenMethod · 0.45

Tested by

no test coverage detected