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

Method setUp

tables/tests/test_tables.py:6994–7002  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6992# Test for appending zero-sized recarrays
6993class ZeroSizedTestCase(common.TempFileMixin, common.PyTablesTestCase):
6994 def setUp(self):
6995 super().setUp()
6996
6997 # Create a Table
6998 t = self.h5file.create_table(
6999 "/", "table", {"c1": tb.Int32Col(), "c2": tb.Float64Col()}
7000 )
7001 # Append a single row
7002 t.append([(1, 2.2)])
7003
7004 def test01_canAppend(self):
7005 """Appending zero length recarray."""

Callers

nothing calls this directly

Calls 3

setUpMethod · 0.45
create_tableMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected