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 @@ -266,7 +266,7 @@ def _preprocess_async_fixtures(
266
266
def _synchronize_async_fixture (fixturedef : FixtureDef ) -> None :
267
267
"""Wraps the fixture function of an async fixture in a synchronous function."""
268
268
if inspect .isasyncgenfunction (fixturedef .func ):
269
- _wrap_asyncgen_fixture (fixturedef )
269
+ fixturedef . func = _wrap_asyncgen_fixture (fixturedef ) # type: ignore[misc]
270
270
elif inspect .iscoroutinefunction (fixturedef .func ):
271
271
fixturedef .func = _wrap_async_fixture (fixturedef ) # type: ignore[misc]
272
272
@@ -299,7 +299,7 @@ def _perhaps_rebind_fixture_func(func: _T, instance: Any | None) -> _T:
299
299
return func
300
300
301
301
302
- def _wrap_asyncgen_fixture (fixturedef : FixtureDef ) -> None :
302
+ def _wrap_asyncgen_fixture (fixturedef : FixtureDef ) -> Callable :
303
303
fixture = fixturedef .func
304
304
305
305
@functools .wraps (fixture )
@@ -343,7 +343,7 @@ async def async_finalizer() -> None:
343
343
request .addfinalizer (finalizer )
344
344
return result
345
345
346
- fixturedef . func = _asyncgen_fixture_wrapper # type: ignore[misc]
346
+ return _asyncgen_fixture_wrapper
347
347
348
348
349
349
def _wrap_async_fixture (fixturedef : FixtureDef ) -> Callable :
You can’t perform that action at this time.
0 commit comments