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:
5252 Error: Catalog Error: Scalar Function with name func does not exist!
5353 """
5454 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! '
5656 ):
5757 res = rel .fetchall ()
5858
@@ -72,7 +72,7 @@ def also_func(x: int) -> int:
7272 return x
7373
7474 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' ):
7676 res = rel2 .fetchall ()
7777
7878 def test_overwrite_name (self ):
@@ -98,7 +98,7 @@ def other_func(x):
9898 con .remove_function ('func' )
9999
100100 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!'
102102 ):
103103 # Attempted to execute the relation using the 'func' function, but it was deleted
104104 rel1 .fetchall ()
You can’t perform that action at this time.
0 commit comments