[New-bugs-announce] [issue30199] Warning -- asyncore.socket_map was modified by test_ssl
STINNER Victor
report at bugs.python.org
Fri Apr 28 09:38:20 EDT 2017
New submission from STINNER Victor:
It seems like test_asyncore_server() of test_ssl doesn't cleanup properly asyncore on FreeBSD, and so following unit tests can be impacted (and fail).
http://buildbot.python.org/all/builders/AMD64%20FreeBSD%20CURRENT%20Debug%203.x/builds/210/steps/test/logs/stdio
test_asyncore_server (test.test_ssl.ThreadedTests)
Check the example asyncore integration. ...
server: new connection from 127.0.0.1:48985
client: sending b'FOO\n'...
server: read b'FOO\n' from client
client: read b'foo\n'
client: closing connection.
server: read b'over\n' from client
client: connection closed.
cleanup: stopping server.
cleanup: joining server thread.
cleanup: successfully joined.
ok
...
Warning -- asyncore.socket_map was modified by test_ssl
Before: {}
After: {6: <test.test_ssl.AsyncoreEchoServer.EchoServer.ConnectionHandler 127.0.0.1:48985 at 0x80664c468>}
Maybe AsyncoreEchoServer.__exit__() should just ends with "asyncore.close_all(ignore_all=True)"?
----------
components: Tests
messages: 292532
nosy: haypo
priority: normal
severity: normal
status: open
title: Warning -- asyncore.socket_map was modified by test_ssl
type: resource usage
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30199>
_______________________________________
More information about the New-bugs-announce
mailing list