Commit 9a265e4
test(pickle): tighten refusal assertion from Exception to RuntimeError
`pytest.raises(Exception, ...)` matched too loosely — a regression that
swallowed the codec refusal as some other error type would have passed
the test. The actual surface error is `RuntimeError` (the
`parse_expr` → `PyRuntimeError` conversion in `expr.rs::from_bytes`).
Switch to the concrete type and add a brief comment explaining why.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 4a8fadc commit 9a265e4
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
298 | 302 | | |
299 | 303 | | |
300 | 304 | | |
| |||
0 commit comments