Skip to content

Commit d62af81

Browse files
committed
fix formatting
1 parent c9f9a29 commit d62af81

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

test/contextmanager_test.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,21 @@ def setUp(self):
1717
)
1818

1919
def test_open_buses(self):
20-
with can.Bus(interface="virtual") as bus_send, can.Bus(
21-
interface="virtual"
22-
) as bus_recv:
20+
with (
21+
can.Bus(interface="virtual") as bus_send,
22+
can.Bus(interface="virtual") as bus_recv,
23+
):
2324
bus_send.send(self.msg_send)
2425
msg_recv = bus_recv.recv()
2526

2627
# Receiving a frame with data should evaluate msg_recv to True
2728
self.assertTrue(msg_recv)
2829

2930
def test_use_closed_bus(self):
30-
with can.Bus(interface="virtual") as bus_send, can.Bus(
31-
interface="virtual"
32-
) as bus_recv:
31+
with (
32+
can.Bus(interface="virtual") as bus_send,
33+
can.Bus(interface="virtual") as bus_recv,
34+
):
3335
bus_send.send(self.msg_send)
3436

3537
# Receiving a frame after bus has been closed should raise a CanException

0 commit comments

Comments
 (0)