(self)
| 1292 | class iterTestCase(common.TempFileMixin, common.PyTablesTestCase): |
| 1293 | |
| 1294 | def setUp(self): |
| 1295 | super().setUp() |
| 1296 | shape = list(self.shape) |
| 1297 | # Build input arrays |
| 1298 | a = np.arange(np.prod(shape), dtype="i4").reshape(shape) |
| 1299 | b = a.copy() |
| 1300 | c = a.copy() |
| 1301 | self.npvars = {"a": a, "b": b, "c": c} |
| 1302 | shape[self.maindim] = 0 |
| 1303 | root = self.h5file.root |
| 1304 | a1 = self.h5file.create_earray( |
| 1305 | root, "a1", atom=tb.Int32Col(), shape=shape |
| 1306 | ) |
| 1307 | b1 = self.h5file.create_earray( |
| 1308 | root, "b1", atom=tb.Int32Col(), shape=shape |
| 1309 | ) |
| 1310 | c1 = self.h5file.create_earray( |
| 1311 | root, "c1", atom=tb.Int32Col(), shape=shape |
| 1312 | ) |
| 1313 | a1.append(a) |
| 1314 | b1.append(b) |
| 1315 | c1.append(c) |
| 1316 | self.vars = {"a": a1, "b": b1, "c": c1} |
| 1317 | # The expression |
| 1318 | self.sexpr = "2 * a + b-c" |
| 1319 | |
| 1320 | def test00_iter(self): |
| 1321 | """Checking the __iter__ iterator.""" |
nothing calls this directly
no test coverage detected