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>
1 file changed