Skip to content

Commit

Permalink
update errors
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAugspurger committed Nov 12, 2018
1 parent 505970e commit fa8934a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pandas/tests/series/test_operators.py
Expand Up @@ -14,6 +14,7 @@
from pandas import (
Categorical, DataFrame, Index, NaT, Series, bdate_range, date_range, isna)
from pandas.core import ops
from pandas.core.indexes.base import InvalidIndexError
import pandas.core.nanops as nanops
import pandas.util.testing as tm
from pandas.util.testing import (
Expand Down Expand Up @@ -198,11 +199,14 @@ def test_scalar_na_logical_ops_corners(self):
pytest.param(ops.ror_,
marks=pytest.mark.xfail(reason="GH#22092 Index "
"implementation raises",
raises=ValueError, strict=True)),
raises=InvalidIndexError,
strict=True)),
pytest.param(ops.rxor,
marks=pytest.mark.xfail(reason="GH#22092 Index "
"implementation raises",
raises=TypeError, strict=True))
"implementation returns "
"Index",
raises=AssertionError,
strict=True))
])
def test_logical_ops_with_index(self, op):
# GH#22092, GH#19792
Expand Down

0 comments on commit fa8934a

Please sign in to comment.