Skip to content

Commit ba57eb9

Browse files
committed
Regex for exception that is compatible with python 3.10 and 3.12
1 parent 2619634 commit ba57eb9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

python/datafusion/tests/test_udaf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,9 @@ def test_errors(df):
8989
df = df.aggregate([], [accum(column("a"))])
9090

9191
msg = (
92-
"Can't instantiate abstract class MissingMethods without an implementation "
93-
"for abstract methods (evaluate, merge, update|'evaluate', 'merge', 'update')"
92+
"Can't instantiate abstract class MissingMethods (without an implementation "
93+
"for abstract methods 'evaluate', 'merge', 'update'|with abstract methods "
94+
"evaluate, merge, update)"
9495
)
9596
with pytest.raises(Exception, match=msg):
9697
df.collect()

0 commit comments

Comments
 (0)