Skip to content

Commit 44b1326

Browse files
committed
formatting
1 parent 21e8767 commit 44b1326

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

eval_protocol/pytest/evaluation_test.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -705,11 +705,12 @@ def create_dual_mode_wrapper() -> Callable:
705705
"""
706706
import asyncio
707707

708-
is_test_func_async = asyncio.iscoroutinefunction(test_func)
708+
# Check if the test function is async
709+
is_async = asyncio.iscoroutinefunction(test_func)
709710

710711
async def call_test_func(**call_kwargs):
711712
"""Helper to call test_func with proper async/sync handling"""
712-
if is_test_func_async:
713+
if is_async:
713714
return await test_func(**call_kwargs)
714715
else:
715716
return test_func(**call_kwargs)

0 commit comments

Comments
 (0)