Commit ed986368 authored by Antoine Pitrou's avatar Antoine Pitrou

Add debug output to the asyncore test

parent f4c7badc
...@@ -1279,9 +1279,17 @@ else: ...@@ -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."""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment