Skip to content

Commit ea64358

Browse files
committed
make test os specific to handle different pandas behaviour
1 parent 31b31a0 commit ea64358

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/test_api_lazy.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import xarray as xr
55
import os, pytest
66
import numpy as np
7+
import platform
78

89
nc.options(lazy=True)
910

@@ -46,7 +47,11 @@ def test_errors(self):
4647
assert tracker.contents.long_name[0] == 'Monthly Means of Global Sea Surface Temperature'
4748
tracker.assign(sst2 = lambda x: x.sst + 283)
4849
tracker.run()
49-
assert str(tracker.contents.long_name[1]) == "nan"
50+
# linux only
51+
if platform.system() == "":
52+
assert str(tracker.contents.long_name[1]) == "nan"
53+
else:
54+
assert tracker.contents.long_name[1] == None
5055

5156

5257
# check wildcard

0 commit comments

Comments
 (0)