]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] urllib: Add tests for HTTP errors to complete coverage (GH-154102) (#154120)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 20 Jul 2026 06:38:10 +0000 (08:38 +0200)
committerGitHub <noreply@github.com>
Mon, 20 Jul 2026 06:38:10 +0000 (08:38 +0200)
commit1df0ecd523b4c15cba26ed4df5ac22f2d209cfc7
tree31842ad1ace8c02bc5ef0c958c497416006cdba0
parent3dd4fdcebc35c966a527f9da15cc3525fb229bbd
[3.15] urllib: Add tests for HTTP errors to complete coverage (GH-154102) (#154120)

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 b8ec956716c183430a93929e6415ceed74089af1)

Co-authored-by: Ajob Kustra <ajob.edward.kustra@cern.ch>
Lib/test/test_urllib.py