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

Method count

numpy/lib/tests/test_io.py:2440–2442  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2438 def test_gft_using_generator(self):
2439 # gft doesn't work with unicode.
2440 def count():
2441 for i in range(10):
2442 yield asbytes("%d" % i)
2443
2444 res = np.genfromtxt(count())
2445 assert_array_equal(res, np.arange(10))

Callers

nothing calls this directly

Calls 1

asbytesFunction · 0.90

Tested by

no test coverage detected