(self)
| 2425 | class TruncateTestCase(common.TempFileMixin, common.PyTablesTestCase): |
| 2426 | |
| 2427 | def setUp(self): |
| 2428 | super().setUp() |
| 2429 | |
| 2430 | # Create an EArray |
| 2431 | atom = tb.Int16Atom(dflt=3) |
| 2432 | array1 = self.h5file.create_earray( |
| 2433 | self.h5file.root, |
| 2434 | "array1", |
| 2435 | atom=atom, |
| 2436 | shape=(0, 2), |
| 2437 | title="title array1", |
| 2438 | ) |
| 2439 | # Add a couple of rows |
| 2440 | array1.append(np.array([[456, 2], [3, 457]], dtype="int16")) |
| 2441 | |
| 2442 | def test00_truncate(self): |
| 2443 | """Checking EArray.truncate() method (truncating to 0 rows)""" |
nothing calls this directly
no test coverage detected