Skip to content

Commit c8922ce

Browse files
committed
troubleshoot windows failure
1 parent 04834ba commit c8922ce

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pandas/core/indexes/base.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@ def cmp_method(self, other):
114114

115115
if is_bool_dtype(result):
116116
return result
117-
return ops.invalid_comparison(self, other, op)
117+
if is_scalar(result):
118+
# Troubleshooting Windows errors
119+
assert result is False, result
120+
return ops.invalid_comparison(self, other, op)
121+
raise RuntimeError(self.dtype, other, result)
118122

119123
name = "__{name}__".format(name=op.__name__)
120124
return set_function_name(cmp_method, name, cls)

0 commit comments

Comments
 (0)