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

Method test_3_tuple

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

Source from the content-addressed store, hash-verified

271class TestDatetimeEvent(_DeprecationTestCase):
272 # 2017-08-11, 1.14.0
273 def test_3_tuple(self):
274 for cls in (np.datetime64, np.timedelta64):
275 # two valid uses - (unit, num) and (unit, num, den, None)
276 self.assert_not_deprecated(cls, args=(1, ('ms', 2)))
277 self.assert_not_deprecated(cls, args=(1, ('ms', 2, 1, None)))
278
279 # trying to use the event argument, removed in 1.7.0, is deprecated
280 # it used to be a uint8
281 self.assert_deprecated(cls, args=(1, ('ms', 2, 'event')))
282 self.assert_deprecated(cls, args=(1, ('ms', 2, 63)))
283 self.assert_deprecated(cls, args=(1, ('ms', 2, 1, 'event')))
284 self.assert_deprecated(cls, args=(1, ('ms', 2, 1, 63)))
285
286
287class TestTruthTestingEmptyArrays(_DeprecationTestCase):

Callers

nothing calls this directly

Calls 2

assert_not_deprecatedMethod · 0.80
assert_deprecatedMethod · 0.80

Tested by

no test coverage detected