Skip to content

Commit 4302ea0

Browse files
committed
Fix unit test
1 parent f98f17e commit 4302ea0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/tests/dtypes/test_dtypes.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,9 @@ def test_repr_range_categories(self):
222222

223223
def test_update_dtype(self):
224224
# GH 27338
225-
result = CategoricalDtype(["a"]).update_dtype(Categorical(["b"], ordered=True))
225+
result = CategoricalDtype(["a"]).update_dtype(
226+
CategoricalDtype(["b"], ordered=True)
227+
)
226228
expected = CategoricalDtype(["b"], ordered=True)
227229
assert result == expected
228230

0 commit comments

Comments
 (0)