Kaydet (Commit) 7390942a authored tarafından Michael W. Hudson's avatar Michael W. Hudson

test_asynchat is no longer expected to produce output.

also, wait for threads to finish before proceeding.
üst 7b279078
test_asynchat
Connected
Received: 'hello world'
......@@ -6,7 +6,7 @@ import unittest
from test import test_support
HOST = "127.0.0.1"
PORT = 54321
PORT = 54322
class echo_server(threading.Thread):
......@@ -67,6 +67,7 @@ class TestAsynchat(unittest.TestCase):
c.push("hello ")
c.push("world\n")
asyncore.loop()
s.join()
self.assertEqual(c.contents, 'hello world')
......@@ -79,6 +80,7 @@ class TestAsynchat(unittest.TestCase):
c.push("hello ")
c.push("world\n")
asyncore.loop()
s.join()
self.assertEqual(c.contents, 'hello ')
......
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