File tree Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -170,10 +170,14 @@ pub fn async_std_test(_attr: TokenStream, item: TokenStream) -> TokenStream {
170
170
let result = quote ! {
171
171
#fn_impl
172
172
173
- inventory:: submit!( pyo3_asyncio:: testing:: Test {
174
- name: format!( "{}::{}" , std:: module_path!( ) , stringify!( #name) ) ,
175
- test_fn: & #name
176
- } ) ;
173
+ pyo3_asyncio:: inventory:: submit! {
174
+ #![ crate = pyo3_asyncio] {
175
+ pyo3_asyncio:: testing:: Test {
176
+ name: format!( "{}::{}" , std:: module_path!( ) , stringify!( #name) ) ,
177
+ test_fn: & #name
178
+ }
179
+ }
180
+ }
177
181
} ;
178
182
179
183
result. into ( )
@@ -248,10 +252,14 @@ pub fn tokio_test(_attr: TokenStream, item: TokenStream) -> TokenStream {
248
252
let result = quote ! {
249
253
#fn_impl
250
254
251
- pyo3_asyncio:: inventory:: submit!( pyo3_asyncio:: testing:: Test {
252
- name: format!( "{}::{}" , std:: module_path!( ) , stringify!( #name) ) ,
253
- test_fn: & #name
254
- } ) ;
255
+ pyo3_asyncio:: inventory:: submit! {
256
+ #![ crate = pyo3_asyncio] {
257
+ pyo3_asyncio:: testing:: Test {
258
+ name: format!( "{}::{}" , std:: module_path!( ) , stringify!( #name) ) ,
259
+ test_fn: & #name
260
+ }
261
+ }
262
+ }
255
263
} ;
256
264
257
265
result. into ( )
You can’t perform that action at this time.
0 commit comments