Message262222
Attached patch modifies Lib/test/test_ssl.py to use "with socket:" instead of "try: ... finally: socket.close()" or similar patterns.
Our PPC64 AIX 3.x buildbot has a broken ssl module. A lot of tests logs ResourceWarning on unclosed sockets, because errors occur before the test closes a socket.
http://buildbot.python.org/all/builders/PPC64%20AIX%203.x/builds/4714/steps/test/logs/stdio
test_connect_ex_error (test.test_ssl.NetworkedTests) ... ok
test_connect_with_context (test.test_ssl.NetworkedTests) ... FAIL
/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Lib/unittest/case.py:628: ResourceWarning: unclosed <ssl.SSLSocket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('140.211.15.154', 60379), raddr=('23.253.148.168', 443)>
outcome.errors.clear() |
|
Date |
User |
Action |
Args |
2016-03-23 00:47:47 | vstinner | set | recipients:
+ vstinner |
2016-03-23 00:47:46 | vstinner | set | messageid: <1458694066.07.0.537208093993.issue26612@psf.upfronthosting.co.za> |
2016-03-23 00:47:46 | vstinner | link | issue26612 messages |
2016-03-23 00:47:45 | vstinner | create | |
|