Skip to content

Commit

Permalink
Fixes for @jreback review
Browse files Browse the repository at this point in the history
  • Loading branch information
MomIsBestFriend committed Dec 4, 2019
1 parent 8c504b8 commit c49d432
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pandas/tests/frame/test_analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -2617,7 +2617,7 @@ def test_n(self, df_strings, nselect_method, n, order):

error_msg = (
f"Column 'b' has dtype object, "
f"cannot use method {repr(nselect_method)} with this dtype"
f"cannot use method '{nselect_method}' with this dtype"
)
with pytest.raises(TypeError, match=error_msg):
getattr(df, nselect_method)(n, order)
Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/indexes/datetimes/test_datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def test_week_of_month_frequency(self):
def test_hash_error(self):
index = date_range("20010101", periods=10)
with pytest.raises(
TypeError, match=f"unhashable type: {repr(type(index).__name__)}"
TypeError, match=f"unhashable type: '{type(index).__name__}'"
):
hash(index)

Expand Down

0 comments on commit c49d432

Please sign in to comment.