Skip to content

Commit aff3cd4

Browse files
committed
remove unnecessary assert
1 parent b3bc7a4 commit aff3cd4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pandas/tests/arrays/categorical/test_astype.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,6 @@ def test_astype_category(self, dtype_ordered, ordered):
133133
def test_astype_category_copy_false_nocopy_codes(self):
134134
# GH#62000
135135
cat = Categorical([3, 2, 4, 1])
136-
assert cat.codes.base is not None
137-
138136
new = cat.astype("category", copy=False)
139137
assert new.codes.base is cat.codes.base or new.codes is cat.codes
140138
new = cat.astype("category", copy=True)

0 commit comments

Comments
 (0)