Skip to content

Commit b79ae6e

Browse files
committed
TST: add failing case for mixed
1 parent e3ef043 commit b79ae6e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/tests/dtypes/test_dtypes.py

+5
Original file line numberDiff line numberDiff line change
@@ -618,3 +618,8 @@ def test_categorical_equality(self, ordered, other, expected):
618618
c1 = CategoricalDtype(['a', 'b'], ordered)
619619
result = c1 == other
620620
assert result == expected
621+
622+
def test_mixed(self):
623+
a = CategoricalDtype(['a', 'b', 1, 2])
624+
b = CategoricalDtype(['a', 'b', '1', '2'])
625+
assert hash(a) != hash(b)

0 commit comments

Comments
 (0)