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

Method test_1d

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

Source from the content-addressed store, hash-verified

289 message = '.*truth value of an empty array is ambiguous.*'
290
291 def test_1d(self):
292 self.assert_deprecated(bool, args=(np.array([]),))
293
294 def test_2d(self):
295 self.assert_deprecated(bool, args=(np.zeros((1, 0)),))

Callers

nothing calls this directly

Calls 1

assert_deprecatedMethod · 0.80

Tested by

no test coverage detected