MCPcopy Create free account
hub / github.com/pydata/numexpr / test_copy

Method test_copy

numexpr3/tests/test_numexpr.py:342–347  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

340 npt.assert_array_equal( locals()['x_magic'], y)
341
342 def test_copy(self):
343 logger.info( 'Test copy evaluate with preallocated output' )
344 x = np.arange(SMALL_SIZE)
345 y = np.zeros_like(x)
346 ne3.evaluate('y=x')
347 npt.assert_array_equal(x, y)
348
349 def test_copy_magic(self):
350 logger.info( 'Test copy evaluate with magic output' )

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected