File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments