File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ def __init__(
49
49
self ,
50
50
channel : Any ,
51
51
can_filters : Optional [can .typechecking .CanFilters ] = None ,
52
- ** kwargs : object
52
+ ** kwargs : object ,
53
53
):
54
54
"""Construct and open a CAN bus instance of the specified type.
55
55
@@ -441,7 +441,6 @@ def __del__(self) -> None:
441
441
self .shutdown ()
442
442
LOG .warn (f"{ self .__class__ } was not properly shut down" )
443
443
444
-
445
444
@property
446
445
def state (self ) -> BusState :
447
446
"""
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ def test_bus_ignore_config():
14
14
_ = can .Bus (interface = "virtual" )
15
15
assert can .util .load_config .called
16
16
17
+
17
18
@patch .object (can .bus .BusABC , "shutdown" )
18
19
def test_bus_attempts_self_cleanup (mock_shutdown ):
19
20
bus = can .Bus (interface = "virtual" )
You can’t perform that action at this time.
0 commit comments