Update of /cvsroot/pywin32/pywin32/win32/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11780
Modified Files:
test_win32pipe.py
Log Message:
Handle ERROR_PIPE_CONNECTED connecting to a pipe - it just means the
other side beat us.
Index: test_win32pipe.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/test/test_win32pipe.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_win32pipe.py 16 Jul 2006 11:02:23 -0000 1.2
--- test_win32pipe.py 24 May 2007 05:30:04 -0000 1.3
***************
*** 35,39 ****
hr = win32pipe.ConnectNamedPipe(pipeHandle)
! self.failUnlessEqual(0, hr)
win32file.WriteFile(pipeHandle, "bar\0foo")
hr, got = win32file.ReadFile(pipeHandle, 100)
--- 35,39 ----
hr = win32pipe.ConnectNamedPipe(pipeHandle)
! self.failUnless(hr in (0, winerror.ERROR_PIPE_CONNECTED), "Got error code 0x%x" % (hr,))
win32file.WriteFile(pipeHandle, "bar\0foo")
hr, got = win32file.ReadFile(pipeHandle, 100)
|