Skip to content

Commit cdf0ee0

Browse files
committed
Very subtle typing problem in the tests
1 parent c13599a commit cdf0ee0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/fast/test_all_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def replace_with_ndarray(obj):
2929
def recursive_equality(o1, o2):
3030
if type(o1) is not type(o2):
3131
return False
32-
if type(o1) is not float and math.isnan(o1) and math.isnan(o2):
32+
if type(o1) == float and math.isnan(o1) and math.isnan(o2): # noqa: E721
3333
return True
3434
if o1 is np.ma.masked and o2 is np.ma.masked:
3535
return True

0 commit comments

Comments
 (0)