@@ -44,7 +44,7 @@ def test_find_fill_value_masked_float(datasets):
4444 assert_dtype_equal (
4545 data_array .values ,
4646 numpy .array ([[1.0 , 2.0 ], [numpy .nan , 4.0 ]], dtype = numpy .float64 ))
47- assert masking .find_fill_value (data_array ) is numpy . nan
47+ assert numpy . isnan ( masking .find_fill_value (data_array ))
4848
4949 # When opened with mask_and_scale=False, xarray does nothing with masks.
5050 # The raw _FillValue should be returned.
@@ -68,7 +68,7 @@ def test_find_fill_value_masked_and_scaled_float(datasets):
6868 assert_dtype_equal (
6969 data_array .values ,
7070 numpy .array ([[1.0 , 2.0 ], [numpy .nan , 4.0 ]], dtype = numpy .float32 ))
71- assert masking .find_fill_value (data_array ) is numpy . nan
71+ assert numpy . isnan ( masking .find_fill_value (data_array ))
7272
7373 # When opened with mask_and_scale=False, xarray does nothing with masks.
7474 # The raw _FillValue should be returned.
@@ -92,7 +92,7 @@ def test_find_fill_value_masked_and_scaled_int(datasets):
9292 assert_dtype_equal (
9393 data_array .values ,
9494 numpy .array ([[1.0 , 2.0 ], [numpy .nan , 4.0 ]], dtype = numpy .float32 ))
95- assert masking .find_fill_value (data_array ) is numpy . nan
95+ assert numpy . isnan ( masking .find_fill_value (data_array ))
9696
9797 # When opened with mask_and_scale=False, xarray does nothing with masks.
9898 # The raw _FillValue should be returned.
0 commit comments