(self)
| 1320 | lst=scalar) |
| 1321 | |
| 1322 | def test_ndarray_format_shape(self): |
| 1323 | # ndim = 1, shape = [n] |
| 1324 | nitems = randrange(1, 10) |
| 1325 | for fmt, items, _ in iter_format(nitems): |
| 1326 | itemsize = struct.calcsize(fmt) |
| 1327 | for flags in (0, ND_PIL): |
| 1328 | nd = ndarray(items, shape=[nitems], format=fmt, flags=flags) |
| 1329 | self.verify(nd, obj=None, |
| 1330 | itemsize=itemsize, fmt=fmt, readonly=True, |
| 1331 | ndim=1, shape=(nitems,), strides=(itemsize,), |
| 1332 | lst=items) |
| 1333 | |
| 1334 | def test_ndarray_format_strides(self): |
| 1335 | # ndim = 1, strides |
nothing calls this directly
no test coverage detected