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

Method test_compiled_bytes

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

Source from the content-addressed store, hash-verified

1332 assert_array_equal(x, a)
1333
1334 def test_compiled_bytes(self):
1335 regexp = re.compile(br'(\d)')
1336 c = BytesIO(b'123')
1337 dt = [('num', np.float64)]
1338 a = np.array([1, 2, 3], dtype=dt)
1339 x = np.fromregex(c, regexp, dt)
1340 assert_array_equal(x, a)
1341
1342 def test_bad_dtype_not_structured(self):
1343 regexp = re.compile(br'(\d)')

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
compileMethod · 0.45

Tested by

no test coverage detected