]> granicus.if.org Git - python/commit
bpo-36918: Fix "Exception ignored in" in test_urllib (GH-13996)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 12 Jun 2019 02:26:02 +0000 (19:26 -0700)
committerGitHub <noreply@github.com>
Wed, 12 Jun 2019 02:26:02 +0000 (19:26 -0700)
commit9d37ae0bee25692572c201378cd0692df22fa2ac
treedb3e926d20e6e056bb4c7e86eb2b0ebdc0a472a7
parent3ba21070c6ecab83c23cea41a92b42fa651c7ea2
bpo-36918: Fix "Exception ignored in" in test_urllib (GH-13996)

Mock the HTTPConnection.close() method in a few unit tests to avoid
logging "Exception ignored in: ..." messages.
(cherry picked from commit eb976e47e261760330c1bed224019b073b05e994)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
Lib/test/test_urllib.py