Commit ac8bb59
[3.13] urllib: Add tests for HTTP errors to complete coverage (GH-154102)
* add test for httperror props such as reason and fp, and stringified urlerror test
* rm unnecessary 'reason' attr test, change url to filename and add reason and headers attr
* separate file pointer test
* prevent resource warning, close httperror exception
* exc > err
(cherry picked from commit b8ec956)
Co-authored-by: Ajob Kustra <ajob.edward.kustra@cern.ch>1 parent b0a181d commit ac8bb59
1 file changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
514 | 514 | | |
515 | 515 | | |
516 | 516 | | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
517 | 536 | | |
518 | 537 | | |
519 | 538 | | |
| |||
566 | 585 | | |
567 | 586 | | |
568 | 587 | | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
569 | 593 | | |
570 | 594 | | |
571 | 595 | | |
| |||
0 commit comments