We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21e8767 commit 44b1326Copy full SHA for 44b1326
1 file changed
eval_protocol/pytest/evaluation_test.py
@@ -705,11 +705,12 @@ def create_dual_mode_wrapper() -> Callable:
705
"""
706
import asyncio
707
708
- is_test_func_async = asyncio.iscoroutinefunction(test_func)
+ # Check if the test function is async
709
+ is_async = asyncio.iscoroutinefunction(test_func)
710
711
async def call_test_func(**call_kwargs):
712
"""Helper to call test_func with proper async/sync handling"""
- if is_test_func_async:
713
+ if is_async:
714
return await test_func(**call_kwargs)
715
else:
716
return test_func(**call_kwargs)
0 commit comments