Skip to content

Commit 19ead64

Browse files
committed
lint & format
1 parent 42c6703 commit 19ead64

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

tests/test_asyncio/test_pubsub.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ async def mysetup(self, r, method):
807807
else:
808808
self.get_message = self.loop_step_listen
809809

810-
self. task = create_task(self.loop())
810+
self.task = create_task(self.loop())
811811
# get the initial connect message
812812
message = await self.messages.get()
813813
assert message == {
@@ -863,7 +863,7 @@ async def test_reconnect_disconnect(self, r: redis.Redis, method):
863863
async with self.cond:
864864
self.state = 1
865865
await self.pubsub.connection.disconnect()
866-
assert not self.pubsub.connection.is_connected # it is in a disconnecte state
866+
assert not self.pubsub.connection.is_connected
867867
# wait for reconnect
868868
await self.cond.wait_for(lambda: self.pubsub.connection.is_connected)
869869
assert self.state == 3

tests/test_pubsub.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -639,8 +639,7 @@ def mysetup(self, r, method):
639639
}
640640

641641
def wait_for_reconnect(self):
642-
self.cond.wait_for(
643-
lambda: self.pubsub.connection._sock is not None, timeout=2)
642+
self.cond.wait_for(lambda: self.pubsub.connection._sock is not None, timeout=2)
644643
assert self.pubsub.connection._sock is not None # we didn't time out
645644
assert self.state == 3
646645

@@ -691,7 +690,7 @@ def test_reconnect_disconnect(self, r: redis.Redis, method):
691690
with self.cond:
692691
self.state = 1
693692
self.pubsub.connection.disconnect()
694-
assert self.pubsub.connection._sock is None # it is in a disconnected state
693+
assert self.pubsub.connection._sock is None
695694
# wait for reconnect
696695
self.wait_for_reconnect()
697696
finally:

0 commit comments

Comments
 (0)