]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
test_asynchat is no longer expected to produce output.
authorMichael W. Hudson <mwh@python.net>
Mon, 20 Jun 2005 13:45:34 +0000 (13:45 +0000)
committerMichael W. Hudson <mwh@python.net>
Mon, 20 Jun 2005 13:45:34 +0000 (13:45 +0000)
also, wait for threads to finish before proceeding.

Lib/test/output/test_asynchat [deleted file]
Lib/test/test_asynchat.py

diff --git a/Lib/test/output/test_asynchat b/Lib/test/output/test_asynchat
deleted file mode 100644 (file)
index e2e67f3..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-test_asynchat
-Connected
-Received: 'hello world'
index d10e389a55c9c972ce7a0128461d3a5ca484f12a..f93587acbef2747961fba74b1379308293a14d62 100644 (file)
@@ -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 ')