Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into STY-repr-batch-5
Browse files Browse the repository at this point in the history
  • Loading branch information
MomIsBestFriend committed Dec 3, 2019
1 parent 3f5fa5f commit 5544823
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions ci/deps/azure-windows-36.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ dependencies:
- numexpr
- numpy=1.15.*
- openpyxl
- jinja2
- pyarrow>=0.12.0
- pytables
- python-dateutil
Expand Down
4 changes: 2 additions & 2 deletions pandas/tests/groupby/test_whitelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,13 @@ def test_groupby_blacklist(df_letters):

# e.g., to_csv
defined_but_not_allowed = (
f"(?:^Cannot.+{repr(bl)}.+{repr(type(gb).__name__)}.+try "
f"(?:^Cannot.+{repr(bl)}.+'{type(gb).__name__}'.+try "
f"using the 'apply' method$)"
)

# e.g., query, eval
not_defined = (
f"(?:^{repr(type(gb).__name__)} object has no attribute {repr(bl)}$)"
f"(?:^'{type(gb).__name__}' object has no attribute {repr(bl)}$)"
)

msg = f"{defined_but_not_allowed}|{not_defined}"
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
4 changes: 1 addition & 3 deletions pandas/tests/indexes/multi/test_integrity.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,7 @@ def test_rangeindex_fallback_coercion_bug():

def test_hash_error(indices):
index = indices
with pytest.raises(
TypeError, match=(f"unhashable type: {repr(type(index).__name__)}")
):
with pytest.raises(TypeError, match=f"unhashable type: '{type(index).__name__}'"):
hash(indices)


Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/indexes/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def test_set_name_methods(self, indices):
def test_hash_error(self, indices):
index = indices
with pytest.raises(
TypeError, match=(f"unhashable type: {repr(type(index).__name__)}")
TypeError, match=f"unhashable type: '{type(index).__name__}'"
):
hash(indices)

Expand Down

0 comments on commit 5544823

Please sign in to comment.