[issue26604] Add optional source parameter to warnings.warn()

STINNER Victor report at bugs.python.org
Mon Mar 21 12:20:24 EDT 2016


STINNER Victor added the comment:

For asyncio, it should help to fix the ResourceWarning warnings on AIX (which has a broken ssl module):

http://buildbot.python.org/all/builders/PPC64%20AIX%203.x/builds/4700/steps/test/logs/stdio

test_create_server_ssl_verify_failed (test.test_asyncio.test_events.PollEventLoopTests) ... FAIL
/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Lib/unittest/case.py:628: ResourceWarning: unclosed <socket.socket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('127.0.0.1', 55439)>
  outcome.errors.clear()

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26604>
_______________________________________


More information about the Python-bugs-list mailing list