]> granicus.if.org Git - python/commit
bpo-30199: test_ssl closes all asyncore channels (#1381) (#1389)
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 2 May 2017 14:48:36 +0000 (16:48 +0200)
committerGitHub <noreply@github.com>
Tue, 2 May 2017 14:48:36 +0000 (16:48 +0200)
commit89a54c73746417bae003a9985668fa665040d5d9
tree9662edc9638206bec2f7a34d0b48c0e8cc45a703
parent3ceeb84b5a90e327ef55190105e82c926b0b8aab
bpo-30199: test_ssl closes all asyncore channels (#1381) (#1389)

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