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

Method test18_closedRepr

tables/tests/test_basics.py:1210–1218  ·  view source on GitHub ↗

Representing a closed node as a string.

(self)

Source from the content-addressed store, hash-verified

1208 self.assertEqual(srcTable.chunkshape, newTable2.chunkshape)
1209
1210 def test18_closedRepr(self):
1211 """Representing a closed node as a string."""
1212
1213 self._reopen(node_cache_slots=self.node_cache_slots)
1214
1215 for node in [self.h5file.root.agroup, self.h5file.root.anarray]:
1216 node._f_close()
1217 self.assertIn("closed", str(node))
1218 self.assertIn("closed", repr(node))
1219
1220 def test19_fileno(self):
1221 """Checking that the 'fileno()' method works."""

Callers

nothing calls this directly

Calls 2

_reopenMethod · 0.45
_f_closeMethod · 0.45

Tested by

no test coverage detected