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

Method test_datetime

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

Source from the content-addressed store, hash-verified

154 @pytest.mark.skipif(not _has_pytz,
155 reason="The pytz module is not available.")
156 def test_datetime(self):
157 tz = pytz.timezone('US/Eastern')
158 dt = datetime.datetime(2000, 1, 1, 0, 0, tzinfo=tz)
159 self.assert_deprecated(np.datetime64, args=(dt,))
160
161
162class TestArrayDataAttributeAssignmentDeprecation(_DeprecationTestCase):

Callers

nothing calls this directly

Calls 1

assert_deprecatedMethod · 0.80

Tested by

no test coverage detected