Add debug output to the asyncore test
This commit is contained in:
parent
f4c7badc02
commit
ed9863685f
|
@ -1279,9 +1279,17 @@ else:
|
||||||
if support.verbose:
|
if support.verbose:
|
||||||
sys.stdout.write(" client: closing connection.\n")
|
sys.stdout.write(" client: closing connection.\n")
|
||||||
s.close()
|
s.close()
|
||||||
|
if support.verbose:
|
||||||
|
sys.stdout.write(" client: connection closed.\n")
|
||||||
finally:
|
finally:
|
||||||
|
if support.verbose:
|
||||||
|
sys.stdout.write(" cleanup: stopping server.\n")
|
||||||
server.stop()
|
server.stop()
|
||||||
|
if support.verbose:
|
||||||
|
sys.stdout.write(" cleanup: joining server thread.\n")
|
||||||
server.join()
|
server.join()
|
||||||
|
if support.verbose:
|
||||||
|
sys.stdout.write(" cleanup: successfully joined.\n")
|
||||||
|
|
||||||
def test_recv_send(self):
|
def test_recv_send(self):
|
||||||
"""Test recv(), send() and friends."""
|
"""Test recv(), send() and friends."""
|
||||||
|
|
Loading…
Reference in New Issue