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

Method cast

numpy/core/tests/test_datetime.py:892–893  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

890 def test_cast_overflow(self):
891 # gh-4486
892 def cast():
893 numpy.datetime64("1971-01-01 00:00:00.000000000000000").astype("<M8[D]")
894 assert_raises(OverflowError, cast)
895
896 def cast2():

Callers 1

test_loop_accessMethod · 0.45

Calls 1

astypeMethod · 0.80

Tested by

no test coverage detected