We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e60c10e commit 695d1e6Copy full SHA for 695d1e6
pytest_asyncio/plugin.py
@@ -445,7 +445,7 @@ def runtest(self) -> None:
445
runner_fixture_id = f"_{loop_scope}_scoped_runner"
446
runner = self._request.getfixturevalue(runner_fixture_id)
447
context = contextvars.copy_context()
448
- synchronized_obj = wrap_in_sync(
+ synchronized_obj = _synchronize_coroutine(
449
getattr(*self._synchronization_target_attr), runner, context
450
)
451
with MonkeyPatch.context() as c:
@@ -664,7 +664,7 @@ def pytest_pyfunc_call(pyfuncitem: Function) -> object | None:
664
return None
665
666
667
-def wrap_in_sync(
+def _synchronize_coroutine(
668
func: Callable[..., CoroutineType],
669
runner: asyncio.Runner,
670
context: contextvars.Context,
0 commit comments