From a82d2b1847564e1c60bbfc32150a3f3b13e97b7d Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 26 Nov 2026 03:35:58 +0100 Subject: [PATCH] ridge-bake tests: _refuses lets a non-Refusal exception propagate, so a crash stays CRASHED Soul s2 (refuses-converts-crash-to-kill): turning a numpy failure at a refusal case into an AssertionError made mutate.py count crashes as kills, the hole the Refusal class closes. Reverts that deviation of cb751c20; the apron-width mutant that crashes in numpy is reported as CRASHED. Co-Authored-By: Claude Sonnet 5.5 --- scripts/ridge-bake/tests/test_ridge.py | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/ridge-bake/tests/test_ridge.py b/scripts/ridge-bake/tests/test_ridge.py index 51b3161a..0077ae07 100644 --- a/scripts/ridge-bake/tests/test_ridge.py +++ b/scripts/ridge-bake/tests/test_ridge.py @@ -218,7 +218,6 @@ def _write(out, b, packed, **kw): def _refuses(out, b, packed, why, **kw): try: _write(out, b, packed, **kw) except export.Refusal: assert not os.path.exists(out), ('a refused bake left files', why) - except Exception as e: raise AssertionError(f'{why}: the writer failed with {type(e).__name__}, not a Refusal: {e}') else: assert False, why def _pins(): assert (export.RING_W, export.TILES, export.TILE_W, export.APRON, export.MAX_CARDS, export.BAKER_VERSION) == (6400, 32, 200, 2, 6, 7), 'the ring layout is pinned'