Skip to content

Commit fa8934a

Browse files
committed
update errors
1 parent 505970e commit fa8934a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

pandas/tests/series/test_operators.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from pandas import (
1515
Categorical, DataFrame, Index, NaT, Series, bdate_range, date_range, isna)
1616
from pandas.core import ops
17+
from pandas.core.indexes.base import InvalidIndexError
1718
import pandas.core.nanops as nanops
1819
import pandas.util.testing as tm
1920
from pandas.util.testing import (
@@ -198,11 +199,14 @@ def test_scalar_na_logical_ops_corners(self):
198199
pytest.param(ops.ror_,
199200
marks=pytest.mark.xfail(reason="GH#22092 Index "
200201
"implementation raises",
201-
raises=ValueError, strict=True)),
202+
raises=InvalidIndexError,
203+
strict=True)),
202204
pytest.param(ops.rxor,
203205
marks=pytest.mark.xfail(reason="GH#22092 Index "
204-
"implementation raises",
205-
raises=TypeError, strict=True))
206+
"implementation returns "
207+
"Index",
208+
raises=AssertionError,
209+
strict=True))
206210
])
207211
def test_logical_ops_with_index(self, op):
208212
# GH#22092, GH#19792

0 commit comments

Comments
 (0)