Repository navigation
Commit f9a10fa
committed
TST: compare what a simulation drew, not what wrote the row down
The Windows legs of this branch hung and then reported a mismatch on
power_off_drag and power_on_drag, and I read that as the guarantee
failing under spawn. It was the test.
Two fields a serialized Function carries belong to the writer rather
than to the draw. hash is the object's identity in that process. A
callable source is its pickle, and the same callable pickles to
different bytes in a spawned child: measured on one drag curve, the
parent and a forked child agree and a spawned child does not. Both of
those drag curves are declared None on the fixture, so nothing varies
them and neither field ever carried a draw.
Measured with the models seeded by hand, no per-index seeding in the
way, one seed: the parent, a forked child and a spawned child all
build the same rocket, mass to the last digit.
So the guarantee does hold on the start method Windows uses, and there
is now a test that says so rather than an assumption. Removing the
per-index seeding still turns three of these red, so dropping those
two fields has not made the comparison vacuous.
Signed-off-by: thc1006 <84045975+thc1006@users.noreply.github.com>1 parent 7b85499 commit f9a10fa
1 file changed
Lines changed: 41 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | | - | |
16 | | - | |
| 16 | + | |
| 17 | + | |
17 | 18 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
26 | | - | |
| 29 | + | |
27 | 30 | | |
28 | | - | |
| 31 | + | |
29 | 32 | | |
30 | 33 | | |
31 | | - | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
38 | | - | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
175 | 178 | | |
176 | 179 | | |
177 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
0 commit comments