Skip to content

Commit 5e9234a

Browse files
committed
Rebase to account for c3c04e2
1 parent afe014b commit 5e9234a

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

pandas/tests/categorical/test_api.py

-5
Original file line numberDiff line numberDiff line change
@@ -404,11 +404,6 @@ def test_deprecated_labels(self):
404404
res = cat.labels
405405
tm.assert_numpy_array_equal(res, exp)
406406

407-
def test_deprecated_from_array(self):
408-
# GH13854, `.from_array` is deprecated
409-
with tm.assert_produces_warning(FutureWarning):
410-
Categorical.from_array([0, 1])
411-
412407

413408
class TestCategoricalAPIWithFactor(TestCategorical):
414409

pandas/tests/categorical/test_subclass.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def test_constructor(self):
1212
assert isinstance(sc, tm.SubclassedCategorical)
1313
tm.assert_categorical_equal(sc, Categorical(['a', 'b', 'c']))
1414

15-
def test_from_array(self):
15+
def test_from_codes(self):
1616
sc = tm.SubclassedCategorical.from_codes([1, 0, 2], ['a', 'b', 'c'])
1717
assert isinstance(sc, tm.SubclassedCategorical)
1818
exp = Categorical.from_codes([1, 0, 2], ['a', 'b', 'c'])

0 commit comments

Comments
 (0)