Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pandas/tests/dtypes/test_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def foo():
inference.is_list_like([])
foo()

with pytest.raises(RecursionError):
with tm.external_error_raised(RecursionError):
foo()


Expand Down
3 changes: 1 addition & 2 deletions pandas/tests/libs/test_hashtable.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,8 @@ def test_get_set_contains_len(self, table_type, dtype):
assert table.get_item(index + 1) == 41
assert index + 2 not in table

with pytest.raises(KeyError) as excinfo:
with pytest.raises(KeyError, match=str(index + 2)):
table.get_item(index + 2)
assert str(index + 2) in str(excinfo.value)

def test_map(self, table_type, dtype):
# PyObjectHashTable has no map-method
Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/resample/test_resampler_grouper.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def test_groupby_with_origin():
count_ts = ts.groupby(simple_grouper).agg("count")
count_ts = count_ts[middle:end]
count_ts2 = ts2.groupby(simple_grouper).agg("count")
with pytest.raises(AssertionError):
with pytest.raises(AssertionError, match="Index are different"):
tm.assert_index_equal(count_ts.index, count_ts2.index)

# test origin on 1970-01-01 00:00:00
Expand Down