Skip to content

Commit 7b83c16

Browse files
committed
test
1 parent 2a6e7a1 commit 7b83c16

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/tests/dtypes/test_inference.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,10 @@ 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))
495+
assert not inference.is_hashable(slice(1, 2), allow_slice=True)
496+
assert not inference.is_hashable(slice(1, 2), allow_slice=False)
497+
494498
assert not inference.is_hashable(tuple_with_slice)
495499
assert not inference.is_hashable(tuple_with_slice, allow_slice=True)
496500
assert not inference.is_hashable(tuple_with_slice, allow_slice=False)

0 commit comments

Comments
 (0)