ridge-bake tests: _refuses lets a non-Refusal exception propagate, so a crash stays CRASHED
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 3m44s
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 3m44s
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 <noreply@anthropic.com>
This commit is contained in:
parent
87a762e2de
commit
a82d2b1847
1 changed files with 0 additions and 1 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in a new issue