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

Method test_unknown_requirement

numpy/core/tests/test_numeric.py:3477–3479  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3475 self.set_and_check_flag(flag, fdtype, a)
3476
3477 def test_unknown_requirement(self):
3478 a = self.generate_all_false('f8')
3479 assert_raises(KeyError, np.require, a, None, 'Q')
3480
3481 def test_non_array_input(self):
3482 a = np.require([1, 2, 3, 4], 'i4', ['C', 'A', 'O'])

Callers

nothing calls this directly

Calls 2

generate_all_falseMethod · 0.95
assert_raisesFunction · 0.90

Tested by

no test coverage detected