Skip to content

Commit 432fe6b

Browse files
committed
Assert exception message 'Only named functions are supported'
1 parent 19a0889 commit 432fe6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/frame/test_query_eval.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,8 +1190,8 @@ def func(*_):
11901190

11911191
df.eval("@func()")
11921192

1193-
with pytest.raises(TypeError):
1193+
with pytest.raises(TypeError, match="Only named functions are supported"):
11941194
df.eval("@funcs[0]()")
11951195

1196-
with pytest.raises(TypeError):
1196+
with pytest.raises(TypeError, match="Only named functions are supported"):
11971197
df.eval("@funcs[0].__call__()")

0 commit comments

Comments
 (0)