Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d70dc72

Browse files
committed
Fix test to work with numpy 1.10.0
1 parent 74eed45 commit d70dc72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tests/test_dates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def test_date2num_NaT(dtype):
7373

7474

7575
def test_date2num_NaT_scalar():
76-
tmpl = mdates.date2num(np.datetime64('NaT'))
76+
tmpl = mdates.date2num(np.datetime64('NaT', 'us'))
7777
assert np.isnan(tmpl)
7878

7979

0 commit comments

Comments
 (0)