Skip to content

Commit 2534b70

Browse files
committed
fix tests
1 parent d489a62 commit 2534b70

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ydb/_topic_common/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ def wrapper(rpc_state, response_pb, driver=None):
3131

3232
if sys.hexversion < 0x03080000:
3333
def wrap_set_name_for_asyncio_task(task: asyncio.Task, task_name: str) -> asyncio.Task:
34-
task.set_name(task_name)
3534
return task
3635
else:
3736
def wrap_set_name_for_asyncio_task(task: asyncio.Task, task_name: str) -> asyncio.Task:
37+
task.set_name(task_name)
3838
return task
3939

4040

ydb/_topic_common/common_test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ async def some_async_task():
8787
asyncio_task = loop.create_task(some_async_task())
8888
wrap_set_name_for_asyncio_task(asyncio_task, task_name=task_name)
8989

90-
if sys.hexversion >= 0x03080000:
91-
assert asyncio_task.get_name() == task_name
90+
assert asyncio_task.get_name() == task_name
9291

9392

9493

0 commit comments

Comments
 (0)