Skip to content

Commit c684c43

Browse files
committed
test
1 parent 0a57d73 commit c684c43

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

pandas/tests/dtypes/test_inference.py

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -491,15 +491,25 @@ def __repr__(self):
491491
assert inference.is_hashable(hashable_slice, allow_slice=True)
492492
assert inference.is_hashable(hashable_slice, allow_slice=False)
493493

494-
assert not inference.is_hashable(slice(1, 2)), (
494+
assert inference.is_hashable(slice(1, 2)), (
495495
f"result is {inference.is_hashable(slice(1, 2))}"
496496
)
497-
assert not inference.is_hashable(slice(1, 2), allow_slice=True)
498-
assert not inference.is_hashable(slice(1, 2), allow_slice=False)
497+
assert inference.is_hashable(slice(1, 2), allow_slice=True), (
498+
f"result is {inference.is_hashable(slice(1, 2), allow_slice=True)}"
499+
)
500+
assert not inference.is_hashable(slice(1, 2), allow_slice=False), (
501+
f"result is {inference.is_hashable(slice(1, 2), allow_slice=False)}"
502+
)
499503

500-
assert not inference.is_hashable(tuple_with_slice)
501-
assert not inference.is_hashable(tuple_with_slice, allow_slice=True)
502-
assert not inference.is_hashable(tuple_with_slice, allow_slice=False)
504+
assert not inference.is_hashable(tuple_with_slice), (
505+
f"result is {inference.is_hashable(tuple_with_slice)}"
506+
)
507+
assert not inference.is_hashable(tuple_with_slice, allow_slice=True), (
508+
f"result is {inference.is_hashable(tuple_with_slice, allow_slice=True)}"
509+
)
510+
assert not inference.is_hashable(tuple_with_slice, allow_slice=False), (
511+
f"result is {inference.is_hashable(tuple_with_slice, allow_slice=False)}"
512+
)
503513

504514
# numpy.array is no longer collections.abc.Hashable as of
505515
# https://github.com/numpy/numpy/pull/5326, just test

0 commit comments

Comments
 (0)