diff options
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/tests/test_arrayprint.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/tests/test_arrayprint.py b/numpy/core/tests/test_arrayprint.py index 396d7a613..62effc425 100644 --- a/numpy/core/tests/test_arrayprint.py +++ b/numpy/core/tests/test_arrayprint.py @@ -141,7 +141,7 @@ class TestArray2String(TestCase): # for issue #5692 A = np.zeros(shape=10, dtype=[("A", "M8[s]")]) - A[5:].fill(np.nan) + A[5:].fill(np.datetime64('NaT')) assert_equal(np.array2string(A), "[('1970-01-01T00:00:00',) ('1970-01-01T00:00:00',) " + "('1970-01-01T00:00:00',)\n ('1970-01-01T00:00:00',) " + |