Skip to content

Commit 68301b6

Browse files
committed
style refactor
1 parent 1cafbff commit 68301b6

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

tests/coordination/test_coordination_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import asyncio
22
import threading
33
import time
4-
from cgitb import small
54

65
import pytest
76

@@ -17,6 +16,7 @@
1716
DescribeLockResult,
1817
)
1918

19+
2020
@pytest.fixture
2121
def sync_coordination_node(driver_sync):
2222
client = CoordinationClient(driver_sync)
@@ -43,6 +43,7 @@ def sync_coordination_node(driver_sync):
4343
except ydb.SchemeError:
4444
pass
4545

46+
4647
@pytest.fixture
4748
async def async_coordination_node(aio_connection):
4849
client = aio.CoordinationClient(aio_connection)
@@ -146,7 +147,6 @@ async def test_coordination_lock_describe_full_async(self, async_coordination_no
146147
assert list(desc2.owners) == []
147148
assert list(desc2.waiters) == []
148149

149-
150150
delete = await lock.delete()
151151
assert delete.status == StatusCode.SUCCESS
152152

@@ -248,7 +248,7 @@ def second_lock_task():
248248
lock2_acquired.set()
249249
logger.info("Second thread acquired lock")
250250
except Exception as e:
251-
logger.exception("second_lock_task failed")
251+
logger.exception(f"{e} | second_lock_task failed")
252252

253253
t2 = threading.Thread(target=second_lock_task)
254254

ydb/aio/coordination/lock.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import asyncio
22
import contextlib
3-
from typing import Optional
43

54
from ydb import issues
65
from ydb._grpc.grpcwrapper.ydb_coordination import (
@@ -13,7 +12,6 @@
1312
FromServer,
1413
)
1514
from ydb._grpc.grpcwrapper.ydb_coordination_public_types import CreateSemaphoreResult, DescribeLockResult
16-
from ydb.aio.coordination.stream import CoordinationStream
1715
from ydb.aio.coordination.reconnector import CoordinationReconnector
1816

1917

0 commit comments

Comments
 (0)