MCPcopy Index your code
hub / github.com/python/cpython / test_ndarray_format_scalar

Method test_ndarray_format_scalar

Lib/test/test_buffer.py:1324–1332  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1322 del nd
1323
1324 def test_ndarray_format_scalar(self):
1325 # ndim = 0: scalar
1326 for fmt, scalar, _ in iter_format(0):
1327 itemsize = struct.calcsize(fmt)
1328 nd = ndarray(scalar, shape=(), format=fmt)
1329 self.verify(nd, obj=None,
1330 itemsize=itemsize, fmt=fmt, readonly=True,
1331 ndim=0, shape=(), strides=(),
1332 lst=scalar)
1333
1334 def test_ndarray_format_shape(self):
1335 # ndim = 1, shape = [n]

Callers

nothing calls this directly

Calls 2

verifyMethod · 0.95
iter_formatFunction · 0.85

Tested by

no test coverage detected