]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
urllib: Add tests for HTTP errors to complete coverage (#154102)
authorAjob Kustra <ajob.edward.kustra@cern.ch>
Sun, 19 Jul 2026 12:29:17 +0000 (14:29 +0200)
committerGitHub <noreply@github.com>
Sun, 19 Jul 2026 12:29:17 +0000 (12:29 +0000)
commitb8ec956716c183430a93929e6415ceed74089af1
tree914b229c69a889b183554d2f5c671c672582c1ce
parent104c397d8f1eeb3649d0c676eec95cd0c9c3f7ce
urllib: Add tests for HTTP errors to complete coverage (#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
Lib/test/test_urllib.py