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

Method test06e_removeTable

tables/tests/test_basics.py:387–398  ·  view source on GitHub ↗

Checking removing Tables from an existing file.

(self)

Source from the content-addressed store, hash-verified

385 self.h5file.remove_node(self.h5file.root, "nonexistent")
386
387 def test06e_removeTable(self):
388 """Checking removing Tables from an existing file."""
389
390 self._reopen(mode="r+", node_cache_slots=self.node_cache_slots)
391 self.h5file.remove_node(self.h5file.root, "atable")
392
393 # Open this file in read-only mode
394 self._reopen(node_cache_slots=self.node_cache_slots)
395
396 # Try to get the removed object
397 with self.assertRaises(LookupError):
398 self.h5file.root.atable
399
400 def test07_renameLeaf(self):
401 """Checking renaming a leave and access it after a close/open."""

Callers

nothing calls this directly

Calls 2

remove_nodeMethod · 0.80
_reopenMethod · 0.45

Tested by

no test coverage detected