File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ def func(x: int) -> int:
52
52
Error: Catalog Error: Scalar Function with name func does not exist!
53
53
"""
54
54
with pytest .raises (
55
- duckdb .InvalidInputException , match = 'Attempting to execute an unsuccessful or closed pending query result '
55
+ duckdb .CatalogException , match = 'Scalar Function with name func does not exist! '
56
56
):
57
57
res = rel .fetchall ()
58
58
@@ -72,7 +72,7 @@ def also_func(x: int) -> int:
72
72
return x
73
73
74
74
con .create_function ('func' , also_func )
75
- with pytest .raises (duckdb .InvalidInputException , match = 'No function matches the given name' ):
75
+ with pytest .raises (duckdb .BinderException , match = 'No function matches the given name' ):
76
76
res = rel2 .fetchall ()
77
77
78
78
def test_overwrite_name (self ):
@@ -98,7 +98,7 @@ def other_func(x):
98
98
con .remove_function ('func' )
99
99
100
100
with pytest .raises (
101
- duckdb .InvalidInputException , match = 'Catalog Error: Scalar Function with name func does not exist!'
101
+ duckdb .CatalogException , match = 'Catalog Error: Scalar Function with name func does not exist!'
102
102
):
103
103
# Attempted to execute the relation using the 'func' function, but it was deleted
104
104
rel1 .fetchall ()
You can’t perform that action at this time.
0 commit comments