Skip to content

Commit a86b50f

Browse files
committed
Try fixing failing tests on windows - on windows dtype here is np.int64 and on linux np.int32
1 parent 1f48299 commit a86b50f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/test_modelchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ def test_heigths_as_string(self):
456456

457457
# Heights in the original DataFrame are of type np.int64
458458
assert isinstance(
459-
self.weather_df.columns.get_level_values(1)[0], np.int64
459+
self.weather_df.columns.get_level_values(1)[0], np.int_
460460
)
461461
assert isinstance(string_weather.columns.get_level_values(1)[0], str)
462462

tests/test_turbine_cluster_modelchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ def test_heigths_as_string(self):
373373

374374
# Heights in the original DataFrame are of type np.int64
375375
assert isinstance(
376-
self.weather_df.columns.get_level_values(1)[0], np.int64
376+
self.weather_df.columns.get_level_values(1)[0], np.int_
377377
)
378378
assert isinstance(string_weather.columns.get_level_values(1)[0], str)
379379

0 commit comments

Comments
 (0)