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

Method test_verify_input

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

Source from the content-addressed store, hash-verified

69 npt.assert_array_almost_equal( out, a2*b2 )
70
71 def test_verify_input(self):
72 logger.info('Test input with verify=True')
73 a = np.array([1., 2., 3.])
74 b = np.array([4., 5., 6.])
75 func = ne3.NumExpr( 'a*b' )
76 a = np.arange(self.ssize).astype(a.dtype)
77 b = np.arange(3.0, self.ssize+3.0).astype(b.dtype)
78 out = func(verify=True)
79 npt.assert_array_almost_equal( out, a*b )
80
81 def test_weakref_expiry(self):
82 # I have no idea how to turn on gc in unittest. I can't find anything

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected