Skip to content

Commit 336c96d

Browse files
committed
review changes
1 parent bed84d6 commit 336c96d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/tests/frame/methods/test_assign.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def test_assign_bad(self):
6868
msg = r"assign\(\) takes 1 positional argument but 2 were given"
6969
with pytest.raises(TypeError, match=msg):
7070
df.assign(lambda x: x.A)
71-
msg = r"'DataFrame' object has no attribute 'C'"
71+
msg = "'DataFrame' object has no attribute 'C'"
7272
with pytest.raises(AttributeError, match=msg):
7373
df.assign(C=df.A, D=df.A + df.C)
7474

pandas/tests/frame/test_query_eval.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,6 @@ def test_str_list_query_method(self, parser, engine):
908908
df = DataFrame(np.random.randn(10, 1), columns=["b"])
909909
df["strings"] = Series(list("aabbccddee"))
910910
expect = df[df.strings.isin(["a", "b"])]
911-
msg = r"'(Not)?In' nodes are not implemented"
912911

913912
if parser != "pandas":
914913
col = "strings"
@@ -919,6 +918,7 @@ def test_str_list_query_method(self, parser, engine):
919918

920919
eq, ne = "==", "!="
921920
ops = 2 * ([eq] + [ne])
921+
msg = r"'(Not)?In' nodes are not implemented"
922922

923923
for lhs, op, rhs in zip(lhs, ops, rhs):
924924
ex = f"{lhs} {op} {rhs}"

0 commit comments

Comments
 (0)