]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] urllib: Add tests for HTTP errors to complete coverage (GH-154102) (#154121)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 22 Jul 2026 08:04:32 +0000 (10:04 +0200)
committerGitHub <noreply@github.com>
Wed, 22 Jul 2026 08:04:32 +0000 (10:04 +0200)
commit6d61cc9ef42bccaef7bf176e7b825dc524fb5d18
treef3b11ef071d9dd04d12dc483c61d1b2ddd44bb16
parentad5ba577990e0e824ec866cc82a50792f79ad196
[3.14] urllib: Add tests for HTTP errors to complete coverage (GH-154102) (#154121)

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>
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
Lib/test/test_urllib.py