[pywin32-checkins] pywin32/win32/test test_win32file.py,1.17,1.18
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-12-11 00:23:53
|
Update of /cvsroot/pywin32/pywin32/win32/test In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv11370/test Modified Files: test_win32file.py Log Message: Avoid socket.create_connection as it doesn't exist in early python's. Index: test_win32file.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/test/test_win32file.py,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** test_win32file.py 6 Dec 2008 00:47:23 -0000 1.17 --- test_win32file.py 11 Dec 2008 00:23:48 -0000 1.18 *************** *** 297,301 **** if not running.isSet(): self.fail("AcceptEx Worker thread failed to start") ! s = socket.create_connection(('127.0.0.1', port), 10) win32file.WSASend(s, "hello", None) overlapped = pywintypes.OVERLAPPED() --- 297,302 ---- if not running.isSet(): self.fail("AcceptEx Worker thread failed to start") ! s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) ! s.connect(('127.0.0.1', port)) win32file.WSASend(s, "hello", None) overlapped = pywintypes.OVERLAPPED() |