Commit 1df0ecd
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 3dd4fdc commit 1df0ecd
1 file changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
470 | 489 | | |
471 | 490 | | |
472 | 491 | | |
| |||
513 | 532 | | |
514 | 533 | | |
515 | 534 | | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
516 | 540 | | |
517 | 541 | | |
518 | 542 | | |
| |||
0 commit comments