MCPcopy Create free account
hub / github.com/numpy/numpy / test_rec_iterate

Method test_rec_iterate

numpy/core/tests/test_regression.py:285–291  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

283 assert_equal('0', np.binary_repr(0))
284
285 def test_rec_iterate(self):
286 # Ticket #160
287 descr = np.dtype([('i', int), ('f', float), ('s', '|S3')])
288 x = np.rec.array([(1, 1.1, '1.0'),
289 (2, 2.2, '2.0')], dtype=descr)
290 x[0].tolist()
291 [i for i in x[0]]
292
293 def test_unicode_string_comparison(self):
294 # Ticket #190

Callers

nothing calls this directly

Calls 2

dtypeMethod · 0.45
tolistMethod · 0.45

Tested by

no test coverage detected