Repository navigation
Commit 0d49624
committed
gh-74112: Fix race in test_interrupt_blocking_call
The timer that sends SIGINT was started before entering the
assertRaises() block. On a loaded machine the KeyboardInterrupt could
be raised before the main thread reached time.sleep(), escape the test
and stop the whole regrtest run. Start the timer inside the block.1 parent 82c62ab commit 0d49624
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
549 | | - | |
550 | 549 | | |
551 | 550 | | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
552 | 554 | | |
553 | 555 | | |
554 | 556 | | |
| |||
0 commit comments