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

Method setUp

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

Source from the content-addressed store, hash-verified

7018# len(datatype) > boundary_alignment is fullfilled.
7019class IrregularStrideTestCase(common.TempFileMixin, common.PyTablesTestCase):
7020 def setUp(self):
7021 super().setUp()
7022
7023 class IRecord(tb.IsDescription):
7024 c1 = tb.Int32Col(pos=1)
7025 c2 = tb.Float64Col(pos=2)
7026
7027 table = self.h5file.create_table("/", "table", IRecord)
7028 for i in range(10):
7029 table.row["c1"] = i
7030 table.row["c2"] = i
7031 table.row.append()
7032 table.flush()
7033
7034 def test00(self):
7035 """Selecting rows in a table with irregular stride (but aligned)."""

Callers

nothing calls this directly

Calls 4

setUpMethod · 0.45
create_tableMethod · 0.45
appendMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected