MCPcopy Index your code
hub / github.com/numpy/numpy / test_generator_source

Method test_generator_source

numpy/lib/tests/test_io.py:1167–1173  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1165 assert_(np.loadtxt(f, ndmin=1).shape == (0,))
1166
1167 def test_generator_source(self):
1168 def count():
1169 for i in range(10):
1170 yield f"{i}"
1171
1172 res = np.loadtxt(count())
1173 assert_array_equal(res, np.arange(10))
1174
1175 def test_bad_line(self):
1176 c = TextIO()

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
countFunction · 0.85

Tested by

no test coverage detected