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

Method test_conjugate

numpy/core/tests/test_deprecations.py:243–248  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

241 which conflicts with the error behavior of np.conjugate.
242 """
243 def test_conjugate(self):
244 for a in np.array(5), np.array(5j):
245 self.assert_not_deprecated(a.conjugate)
246 for a in (np.array('s'), np.array('2016', 'M'),
247 np.array((1, 2), [('a', int), ('b', int)])):
248 self.assert_deprecated(a.conjugate)
249
250
251class TestNPY_CHAR(_DeprecationTestCase):

Callers

nothing calls this directly

Calls 2

assert_not_deprecatedMethod · 0.80
assert_deprecatedMethod · 0.80

Tested by

no test coverage detected