diff options
author | Michael W. Hudson <mwh@python.net> | 2005-06-20 13:45:34 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2005-06-20 13:45:34 (GMT) |
commit | 7390942aa16be9b894c31563ec9f2b502ed28338 (patch) | |
tree | c6141bd2b2d6eeedf72dbf3195b78f35cc586414 /Lib/test/test_asynchat.py | |
parent | 7b279078c0f59c37a91062ebf724f8f13287d5d6 (diff) | |
download | cpython-7390942aa16be9b894c31563ec9f2b502ed28338.zip cpython-7390942aa16be9b894c31563ec9f2b502ed28338.tar.gz cpython-7390942aa16be9b894c31563ec9f2b502ed28338.tar.bz2 |
test_asynchat is no longer expected to produce output.
also, wait for threads to finish before proceeding.
Diffstat (limited to 'Lib/test/test_asynchat.py')
-rw-r--r-- | Lib/test/test_asynchat.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_asynchat.py b/Lib/test/test_asynchat.py index d10e389..f93587a 100644 --- a/Lib/test/test_asynchat.py +++ b/Lib/test/test_asynchat.py @@ -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 ') |