Commit b8b7433
authored
Improve docs for Parametrizing conditional raising (#11279)
What one typically actually wants in such a case is both, checking for some
resulting values *and* checking for some expected exception.
Since this is easily possible with the `nullcontext` context manager, adapt the
example accordingly (needlessly using a different name rather just confuses people).
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>1 parent 4797dea commit b8b7433
1 file changed
+13
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
657 | 657 | | |
658 | 658 | | |
659 | 659 | | |
660 | | - | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
661 | 664 | | |
662 | 665 | | |
663 | 666 | | |
664 | 667 | | |
665 | 668 | | |
666 | | - | |
| 669 | + | |
667 | 670 | | |
668 | 671 | | |
669 | 672 | | |
670 | 673 | | |
671 | 674 | | |
672 | 675 | | |
673 | 676 | | |
674 | | - | |
675 | | - | |
676 | | - | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
677 | 680 | | |
678 | 681 | | |
679 | 682 | | |
680 | 683 | | |
681 | 684 | | |
682 | | - | |
683 | | - | |
| 685 | + | |
| 686 | + | |
684 | 687 | | |
685 | | - | |
686 | | - | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
0 commit comments