Skip to content

Commit 2acb8df

Browse files
committed
[refactor] Removed unused pytest item argument from _wrap_in_sync.
Signed-off-by: Michael Seifert <[email protected]>
1 parent 3eb67c5 commit 2acb8df

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pytest_asyncio/plugin.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,6 @@ def _can_substitute(item: pytest.Function) -> bool:
398398
def runtest(self) -> None:
399399
if self.get_closest_marker("asyncio"):
400400
self.obj = wrap_in_sync(
401-
self,
402401
self.obj,
403402
)
404403
super().runtest()
@@ -420,7 +419,6 @@ def _can_substitute(item: pytest.Function) -> bool:
420419
def runtest(self) -> None:
421420
if self.get_closest_marker("asyncio"):
422421
self.obj = wrap_in_sync(
423-
self,
424422
self.obj,
425423
)
426424
super().runtest()
@@ -442,7 +440,6 @@ def _can_substitute(item: pytest.Function) -> bool:
442440
def runtest(self) -> None:
443441
if self.get_closest_marker("asyncio"):
444442
self.obj.hypothesis.inner_test = wrap_in_sync(
445-
self,
446443
self.obj.hypothesis.inner_test,
447444
)
448445
super().runtest()
@@ -744,7 +741,6 @@ def pytest_pyfunc_call(pyfuncitem: pytest.Function) -> Optional[object]:
744741

745742

746743
def wrap_in_sync(
747-
pyfuncitem: pytest.Function,
748744
func: Callable[..., Awaitable[Any]],
749745
):
750746
"""Return a sync wrapper around an async function executing it in the

0 commit comments

Comments
 (0)