[Python-checkins] r62113 - python/trunk/Lib/test/test_socket.py

amaury.forgeotdarc python-checkins at python.org
Wed Apr 2 23:18:47 CEST 2008


Author: amaury.forgeotdarc
Date: Wed Apr 2 23:18:46 2008
New Revision: 62113
Modified:
 python/trunk/Lib/test/test_socket.py
Log:
Remove debug prints; the buildbot now passes the tests
Modified: python/trunk/Lib/test/test_socket.py
==============================================================================
--- python/trunk/Lib/test/test_socket.py	(original)
+++ python/trunk/Lib/test/test_socket.py	Wed Apr 2 23:18:46 2008
@@ -15,14 +15,6 @@
 from weakref import proxy
 import signal
 
-# Temporary hack to see why test_socket hangs on one buildbot
-if os.environ.get('COMPUTERNAME') == "GRAPE":
- def verbose_write(arg):
- print >>sys.__stdout__, arg
-else:
- def verbose_write(arg):
- pass
-
 PORT = 50007
 HOST = 'localhost'
 MSG = 'Michael Gilfix was here\n'
@@ -30,21 +22,15 @@
 class SocketTCPTest(unittest.TestCase):
 
 def setUp(self):
- verbose_write(self)
 self.serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
 self.serv.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
- verbose_write(str(self) + " socket created")
 global PORT
 PORT = test_support.bind_port(self.serv, HOST, PORT)
- verbose_write(str(self) + " start listening")
 self.serv.listen(1)
- verbose_write(str(self) + " started")
 
 def tearDown(self):
- verbose_write(str(self) + " close")
 self.serv.close()
 self.serv = None
- verbose_write(str(self) + " done")
 
 class SocketUDPTest(unittest.TestCase):
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /