]> granicus.if.org Git - python/commit
bpo-30199: test_ssl closes all asyncore channels (#1381)
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 2 May 2017 11:12:02 +0000 (13:12 +0200)
committerGitHub <noreply@github.com>
Tue, 2 May 2017 11:12:02 +0000 (13:12 +0200)
commit1dae7450c68bad498e57800387b24cb103c461fa
tree89b3558e121bb13d75f0eb5d177ea1763cf58bcc
parent92fd6c9ef54a857815e3dca8ee74b2b4f5cdf154
bpo-30199: test_ssl closes all asyncore channels (#1381)

AsyncoreEchoServer of test_ssl now calls
asyncore.close_all(ignore_all=True) to ensure that
asyncore.socket_map is cleared once the test completes, even if
ConnectionHandler was not correctly unregistered.

Fix the following warning:

Warning -- asyncore.socket_map was modified by test_ssl
  Before: {}
  After:  {6: <test.test_ssl.AsyncoreEchoServer.EchoServer.ConnectionHandler>}
Lib/test/test_ssl.py