Repository navigation
Commit 0cc6527
TST: seed test_subsample to remove flaky failure (#1007)
test_subsample expects all four outcomes for O1 across 100 unseeded
draws. (3, 0, 0) occurs with p=1/16 per draw, so the test fails
~0.16% of the time ((15/16)**100). It failed on the master push of
afffa0c (run 37349225586) after passing on the same commit in #1006.
Seed each iteration with its index so the draws are deterministic
while still covering every outcome.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent afffa0c commit 0cc6527
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3309 | 3309 | | |
3310 | 3310 | | |
3311 | 3311 | | |
| 3312 | + | |
| 3313 | + | |
3312 | 3314 | | |
3313 | | - | |
| 3315 | + | |
3314 | 3316 | | |
3315 | 3317 | | |
3316 | 3318 | | |
| |||
0 commit comments