From 262ec0b9384d4c151d9337247db4d9626e676513 Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Sun, 4 Oct 2026 21:32:03 -0500 Subject: [PATCH] C3 Test Types --- openpilot/common/hardware/comma/tests/test_c3_startup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openpilot/common/hardware/comma/tests/test_c3_startup.py b/openpilot/common/hardware/comma/tests/test_c3_startup.py index 32e5c9c08b..86667b140a 100644 --- a/openpilot/common/hardware/comma/tests/test_c3_startup.py +++ b/openpilot/common/hardware/comma/tests/test_c3_startup.py @@ -136,8 +136,8 @@ def test_internal_panda_reset_and_recovery_timing(device, reset_hold, recover_ho def test_pandad_enumeration_and_recovery(device, failure): pandad_path = SOURCE.parents[3] / 'selfdrive/pandad/pandad.py' tree = ast.parse(pandad_path.read_text()) - functions = [node for node in tree.body if isinstance(node, ast.FunctionDef) and - node.name in {'wait_for_internal_panda', 'main'}] + functions: list[ast.stmt] = [node for node in tree.body if isinstance(node, ast.FunctionDef) and + node.name in {'wait_for_internal_panda', 'main'}] events = Mock() first_discovery = {'missing': [], 'usb': OSError(), 'multiple': ['one', 'two'], 'wait': []}.get(failure, ['serial']) initial_ready = device != 'tici' or failure not in ('wait', 'initial_wait')