11use crate :: integration_tests:: python:: test_utils:: python_scalar_udfs;
22use datafusion_common:: DataFusionError ;
33
4- #[ tokio:: test( flavor = "multi_thread" ) ]
4+ #[ tokio:: test]
55async fn test_invalid_syntax ( ) {
66 const CODE : & str = ")" ;
77
@@ -18,7 +18,7 @@ async fn test_invalid_syntax() {
1818 ) ;
1919}
2020
21- #[ tokio:: test( flavor = "multi_thread" ) ]
21+ #[ tokio:: test]
2222async fn test_missing_return_type ( ) {
2323 const CODE : & str = "
2424def add_one(x: int):
@@ -43,7 +43,7 @@ def add_one(x: int):
4343 ) ;
4444}
4545
46- #[ tokio:: test( flavor = "multi_thread" ) ]
46+ #[ tokio:: test]
4747async fn test_missing_arg_type ( ) {
4848 const CODE : & str = "
4949def add_one(x) -> int:
@@ -68,7 +68,7 @@ def add_one(x) -> int:
6868 ) ;
6969}
7070
71- #[ tokio:: test( flavor = "multi_thread" ) ]
71+ #[ tokio:: test]
7272async fn test_union_type_2 ( ) {
7373 const CODE : & str = "
7474def add_one(x: int | str) -> int:
@@ -93,7 +93,7 @@ def add_one(x: int | str) -> int:
9393 ) ;
9494}
9595
96- #[ tokio:: test( flavor = "multi_thread" ) ]
96+ #[ tokio:: test]
9797async fn test_union_type_2_and_none ( ) {
9898 const CODE : & str = "
9999def add_one(x: int | str | None) -> int:
@@ -118,7 +118,7 @@ def add_one(x: int | str | None) -> int:
118118 ) ;
119119}
120120
121- #[ tokio:: test( flavor = "multi_thread" ) ]
121+ #[ tokio:: test]
122122async fn test_union_type_2_identical ( ) {
123123 const CODE : & str = "
124124def add_one(x: int | str | int) -> int:
@@ -143,7 +143,7 @@ def add_one(x: int | str | int) -> int:
143143 ) ;
144144}
145145
146- #[ tokio:: test( flavor = "multi_thread" ) ]
146+ #[ tokio:: test]
147147async fn test_union_type_2_identical_and_none ( ) {
148148 const CODE : & str = "
149149def add_one(x: int | None | str | int) -> int:
@@ -168,7 +168,7 @@ def add_one(x: int | None | str | int) -> int:
168168 ) ;
169169}
170170
171- #[ tokio:: test( flavor = "multi_thread" ) ]
171+ #[ tokio:: test]
172172async fn test_union_type_3 ( ) {
173173 const CODE : & str = "
174174def add_one(x: int | str | float) -> int:
@@ -193,7 +193,7 @@ def add_one(x: int | str | float) -> int:
193193 ) ;
194194}
195195
196- #[ tokio:: test( flavor = "multi_thread" ) ]
196+ #[ tokio:: test]
197197async fn test_type_annotation_is_not_a_type ( ) {
198198 const CODE : & str = "
199199def add_one(x: 1337) -> int:
@@ -218,7 +218,7 @@ def add_one(x: 1337) -> int:
218218 ) ;
219219}
220220
221- #[ tokio:: test( flavor = "multi_thread" ) ]
221+ #[ tokio:: test]
222222async fn test_unsupported_type ( ) {
223223 const CODE : & str = "
224224def add_one(x: list[int]) -> int:
@@ -243,7 +243,7 @@ def add_one(x: list[int]) -> int:
243243 ) ;
244244}
245245
246- #[ tokio:: test( flavor = "multi_thread" ) ]
246+ #[ tokio:: test]
247247async fn test_custom_type ( ) {
248248 const CODE : & str = "
249249class C:
@@ -271,7 +271,7 @@ def add_one(x: C) -> int:
271271 ) ;
272272}
273273
274- #[ tokio:: test( flavor = "multi_thread" ) ]
274+ #[ tokio:: test]
275275async fn test_exception ( ) {
276276 const CODE : & str = "
277277raise Exception('foo')
0 commit comments