Repository navigation
Commit babdd72
committed
tests: compare disposal thread objects after manager shutdown
Manager shutdown can retire a pool owner before the executor creates its
worker. PyPy can reuse that owner's native thread ID, so comparing saved
integer IDs falsely reports owner-thread disposal.
Retain actual Thread objects and verify worker execution context. Preserve
the exactly-once disposal and released-credit assertions; an exactly-once
owner-disposal negative control still fails the owner-exclusion assertion.1 parent 4747f2b commit babdd72
1 file changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
505 | 509 | | |
506 | 510 | | |
507 | 511 | | |
| |||
514 | 518 | | |
515 | 519 | | |
516 | 520 | | |
517 | | - | |
| 521 | + | |
518 | 522 | | |
519 | 523 | | |
520 | 524 | | |
521 | 525 | | |
522 | | - | |
523 | | - | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
524 | 530 | | |
525 | 531 | | |
526 | 532 | | |
| |||
0 commit comments