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 e9965b5 commit b3e2166Copy full SHA for b3e2166
pytest_asyncio/plugin.py
@@ -689,12 +689,6 @@ def wrap_in_sync(
689
Return a sync wrapper around an async function executing it in the
690
current event loop.
691
"""
692
- # if the function is already wrapped, we rewrap using the original one
693
- # not using __wrapped__ because the original function may already be
694
- # a wrapped one
695
- raw_func = getattr(func, "_raw_test_func", None)
696
- if raw_func is not None:
697
- func = raw_func
698
699
@functools.wraps(func)
700
def inner(*args, **kwargs):
@@ -711,7 +705,6 @@ def inner(*args, **kwargs):
711
705
task.exception()
712
706
raise
713
707
714
- inner._raw_test_func = func # type: ignore[attr-defined]
715
708
return inner
716
709
717
710
0 commit comments