Skip to content

Commit 31b31a0

Browse files
committed
tweak a test for new pandas behaviour
1 parent 2edba3e commit 31b31a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_api_lazy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import glob
44
import xarray as xr
55
import os, pytest
6+
import numpy as np
67

78
nc.options(lazy=True)
89

@@ -45,7 +46,7 @@ def test_errors(self):
4546
assert tracker.contents.long_name[0] == 'Monthly Means of Global Sea Surface Temperature'
4647
tracker.assign(sst2 = lambda x: x.sst + 283)
4748
tracker.run()
48-
assert tracker.contents.long_name[1] == None
49+
assert str(tracker.contents.long_name[1]) == "nan"
4950

5051

5152
# check wildcard

0 commit comments

Comments
 (0)