Commit bbf0086
committed
gh-135736: Fix test_taskgroup_20f to use KeyboardInterrupt, not a custom BaseException
TaskGroup._is_base_error() only recognizes SystemExit and KeyboardInterrupt
(GeneratorExit is handled separately); an arbitrary BaseException subclass
like MyBaseExc never sets self._base_error, so it takes the
BaseExceptionGroup-wrapping path instead of the direct-raise path this test
meant to exercise, causing CI failures across all platforms. Use
KeyboardInterrupt (matching the existing test_taskgroup_20) instead.1 parent f878aeb commit bbf0086
1 file changed
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
690 | 690 | | |
691 | 691 | | |
692 | 692 | | |
693 | | - | |
694 | | - | |
695 | | - | |
696 | | - | |
697 | | - | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
698 | 699 | | |
699 | 700 | | |
700 | 701 | | |
| |||
703 | 704 | | |
704 | 705 | | |
705 | 706 | | |
706 | | - | |
| 707 | + | |
707 | 708 | | |
708 | 709 | | |
709 | 710 | | |
| |||
714 | 715 | | |
715 | 716 | | |
716 | 717 | | |
717 | | - | |
| 718 | + | |
718 | 719 | | |
719 | 720 | | |
720 | 721 | | |
| |||
0 commit comments