]> granicus.if.org Git - python/commit
bpo-30199: test_ssl closes all asyncore channels (#1381) (#1408)
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 3 May 2017 01:47:34 +0000 (03:47 +0200)
committerGitHub <noreply@github.com>
Wed, 3 May 2017 01:47:34 +0000 (03:47 +0200)
commitd1c862ffa73b222746035155817d2516c4f5b71e
treea123154d7825fd06dc822aa8a6645570a9d562f4
parentdf5692549a68741d3d02eeee28f9fef74f349712
bpo-30199: test_ssl closes all asyncore channels (#1381) (#1408)

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