[Zope3-checkins] CVS: Zope3/src/zope/fssync/tests - test_network.py:1.7

Guido van Rossum guido@python.org
Thu, 29 May 2003 14:38:46 -0400


Update of /cvs-repository/Zope3/src/zope/fssync/tests
In directory cvs.zope.org:/tmp/cvs-serv782

Modified Files:
	test_network.py 
Log Message:
Windows Python 2.2 doesn't have default arguments for socket(), so
fill them in explicitly (AF_INET, SOCK_STREAM).


=== Zope3/src/zope/fssync/tests/test_network.py 1.6 => 1.7 ===
--- Zope3/src/zope/fssync/tests/test_network.py:1.6	Wed May 28 18:22:37 2003
+++ Zope3/src/zope/fssync/tests/test_network.py	Thu May 29 14:38:46 2003
@@ -49,7 +49,7 @@
         threading.Thread.__init__(self)
 
     def run(self):
-        svr = socket.socket()
+        svr = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
         svr.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
         svr.bind((HOST, PORT))
         svr.listen(1)