Skip to content

Commit

Permalink
TST: remove skip for values/index length mismatch in ExtensionArray t…
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche authored and TomAugspurger committed Apr 2, 2018
1 parent 4efb39f commit fac2ef1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pandas/tests/extension/base/constructors.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ def test_dataframe_from_series(self, data):
assert result.shape == (len(data), 1)
assert isinstance(result._data.blocks[0], ExtensionBlock)

@pytest.mark.xfail(reason="GH-19342")
def test_series_given_mismatched_index_raises(self, data):
msg = 'Wrong number of items passed 3, placement implies 4'
with tm.assert_raises_regex(ValueError, None) as m:
msg = 'Length of passed values is 3, index implies 5'
with tm.assert_raises_regex(ValueError, msg):
pd.Series(data[:3], index=[0, 1, 2, 3, 4])

assert m.match(msg)

0 comments on commit fac2ef1

Please sign in to comment.