Commit 8be8335
Claude (on behalf of Steven Schlansker)
test(format): reset leaked ListLazyElemInner.check flag in finally
The lazy-list test sets the static check flag to assert that only the accessed
element is constructed, but never reset it. Left true, the flag leaks into any
later test that decodes a ListLazyElemInner through its globally-registered
codec, where a non-42 value would trip the constructor assertion spuriously.
Reset it in a finally so it cannot escape the test.1 parent 88f088b commit 8be8335
1 file changed
Lines changed: 12 additions & 5 deletions
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
473 | 476 | | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
479 | 486 | | |
480 | 487 | | |
481 | 488 | | |
| |||
0 commit comments