]> granicus.if.org Git - python/commit
bpo-30199: test_ssl closes all asyncore channels (#1381) (#1390)
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 2 May 2017 14:49:10 +0000 (16:49 +0200)
committerGitHub <noreply@github.com>
Tue, 2 May 2017 14:49:10 +0000 (16:49 +0200)
commit3c422b92653df05c7034136b77f76376aa5aec4f
treec2c10fa379e8f67b2b2fb4a81ca33758ef9414a6
parent30768958490c658fba0fe24f1cabbdad44be22ff
bpo-30199: test_ssl closes all asyncore channels (#1381) (#1390)

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>}
(cherry picked from commit 1dae7450c68bad498e57800387b24cb103c461fa)
Lib/test/test_ssl.py