Update of /cvsroot/pywin32/pywin32/win32/test
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv28532/win32/test
Modified Files:
test_win32file.py
Log Message:
Avoid local variable called 'thread' to be 2to3 friendly
Index: test_win32file.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/test/test_win32file.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** test_win32file.py 11 Dec 2008 00:23:48 -0000 1.18
--- test_win32file.py 11 Dec 2008 05:11:57 -0000 1.19
***************
*** 230,237 ****
win32file.CreateIoCompletionPort(handle, port, 1, 0)
! thread = threading.Thread(target=self._IOCPServerThread, args=(handle,port, test_overlapped_death))
# hrmph - markh is seeing failures here on x64 - and a hang!
! thread.setDaemon(True) # avoid hanging entire test suite on failure.
! thread.start()
try:
time.sleep(0.1) # let thread do its thing.
--- 230,237 ----
win32file.CreateIoCompletionPort(handle, port, 1, 0)
! t = threading.Thread(target=self._IOCPServerThread, args=(handle,port, test_overlapped_death))
# hrmph - markh is seeing failures here on x64 - and a hang!
! t.setDaemon(True) # avoid hanging entire test suite on failure.
! t.start()
try:
time.sleep(0.1) # let thread do its thing.
***************
*** 244,249 ****
finally:
handle.Close()
! thread.join(3)
! self.failIf(thread.isAlive(), "thread didn't finish")
def testCompletionPortsNonQueuedBadReference(self):
--- 244,249 ----
finally:
handle.Close()
! t.join(3)
! self.failIf(t.isAlive(), "thread didn't finish")
def testCompletionPortsNonQueuedBadReference(self):
***************
*** 405,410 ****
flags)
print "got", changes
! except 'xx':
! xx
changes.extend(changes)
--- 405,410 ----
flags)
print "got", changes
! except:
! raise
changes.extend(changes)
|