Skip to content

Commit 695d1e6

Browse files
committed
refactor: Rename wrap_in_sync to _synchronize_coroutine.
1 parent e60c10e commit 695d1e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytest_asyncio/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ def runtest(self) -> None:
445445
runner_fixture_id = f"_{loop_scope}_scoped_runner"
446446
runner = self._request.getfixturevalue(runner_fixture_id)
447447
context = contextvars.copy_context()
448-
synchronized_obj = wrap_in_sync(
448+
synchronized_obj = _synchronize_coroutine(
449449
getattr(*self._synchronization_target_attr), runner, context
450450
)
451451
with MonkeyPatch.context() as c:
@@ -664,7 +664,7 @@ def pytest_pyfunc_call(pyfuncitem: Function) -> object | None:
664664
return None
665665

666666

667-
def wrap_in_sync(
667+
def _synchronize_coroutine(
668668
func: Callable[..., CoroutineType],
669669
runner: asyncio.Runner,
670670
context: contextvars.Context,

0 commit comments

Comments
 (0)