Skip to content

Commit e2473f8

Browse files
committed
Added an xfail for imaginary
1 parent 58b0f20 commit e2473f8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pandas/tests/test_categorical.py

+7
Original file line numberDiff line numberDiff line change
@@ -1614,6 +1614,13 @@ def test_validate_inplace(self):
16141614
with pytest.raises(ValueError):
16151615
cat.sort_values(inplace=value)
16161616

1617+
@pytest.mark.xfail
1618+
def test_imaginary(self):
1619+
values = [1, 2, 3 + 1j]
1620+
c1 = pd.Categorical(values)
1621+
tm.assert_index_equal(c1.categories, pd.Index(values))
1622+
tm.assert_numpy_array_equal(np.array(c1), np.array(values))
1623+
16171624

16181625
class TestCategoricalAsBlock(object):
16191626

0 commit comments

Comments
 (0)