Use a typed failure callback in HKG admission regression

This commit is contained in:
firestar5683
2026-10-23 15:31:32 -05:00
parent eb955e391c
commit 04030a447e
2 changed files with 5 additions and 2 deletions
@@ -125,8 +125,11 @@ def test_latest_panda_fault_veto_stays_live(cp):
def test_unknown_ducktype_never_serializes_or_caches():
def unexpected_copy():
raise AssertionError('unknown CP must not be serialized')
cp = SimpleNamespace(brand='hyundai', carFingerprint='KIA_EV9', schema=None,
copy=lambda: pytest.fail('unknown CP must not be serialized'))
copy=unexpected_copy)
assert vehicle.native_admission_key(cp) is None
+1 -1
View File
@@ -1 +1 @@
{"protected_inventory_sha256": "325c00c77adb6543594adf49e70a5884bc676dad40b4c23f1abf4157c0dbde51", "schema_version": 1}
{"protected_inventory_sha256": "9a0184a063f68cb782667240119b99c1eb0b4786d285659a05f7d6b776136d32", "schema_version": 1}