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

Method test_datetime

numpy/testing/tests/test_utils.py:313–331  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

311 self._test_not_equal(np.inf, [np.inf])
312
313 def test_datetime(self):
314 self._test_equal(
315 np.datetime64("2017-01-01", "s"),
316 np.datetime64("2017-01-01", "s")
317 )
318 self._test_equal(
319 np.datetime64("2017-01-01", "s"),
320 np.datetime64("2017-01-01", "m")
321 )
322
323 # gh-10081
324 self._test_not_equal(
325 np.datetime64("2017-01-01", "s"),
326 np.datetime64("2017-01-02", "s")
327 )
328 self._test_not_equal(
329 np.datetime64("2017-01-01", "s"),
330 np.datetime64("2017-01-02", "m")
331 )
332
333 def test_nat_items(self):
334 # not a datetime

Callers

nothing calls this directly

Calls 2

_test_equalMethod · 0.80
_test_not_equalMethod · 0.80

Tested by

no test coverage detected