[pywin32-checkins] pywin32/win32/test test_win32trace.py, 1.5.4.1, 1.5.4.2
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-12-04 07:28:52
|
Update of /cvsroot/pywin32/pywin32/win32/test In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv4381/win32/test Modified Files: Tag: py3k test_win32trace.py Log Message: merge more various changes from the trunk Index: test_win32trace.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/test/test_win32trace.py,v retrieving revision 1.5.4.1 retrieving revision 1.5.4.2 diff -C2 -d -r1.5.4.1 -r1.5.4.2 *** test_win32trace.py 26 Nov 2008 09:03:31 -0000 1.5.4.1 --- test_win32trace.py 4 Dec 2008 07:28:46 -0000 1.5.4.2 *************** *** 157,161 **** CheckNoOtherReaders() self.threads = [WriterThread() for each in range(self.FullBucket)] ! self.buckets = range(self.BucketCount) for each in self.buckets: self.buckets[each] = 0 --- 157,161 ---- CheckNoOtherReaders() self.threads = [WriterThread() for each in range(self.FullBucket)] ! self.buckets = list(range(self.BucketCount)) for each in self.buckets: self.buckets[each] = 0 *************** *** 255,259 **** TraceWriteProcess.BucketCount = self.BucketCount self.setUpWriters() ! self.buckets = range(self.BucketCount) for each in self.buckets: self.buckets[each] = 0 --- 255,259 ---- TraceWriteProcess.BucketCount = self.BucketCount self.setUpWriters() ! self.buckets = list(range(self.BucketCount)) for each in self.buckets: self.buckets[each] = 0 *************** *** 309,318 **** threads = [WriterThread() for each in range(threadCount)] win32trace.InitWrite() ! for thread in threads: ! thread.start() ! for thread in threads: ! thread.join() ! for thread in threads: ! if not thread.verifyWritten(): sys.exit(-1) --- 309,318 ---- threads = [WriterThread() for each in range(threadCount)] win32trace.InitWrite() ! for t in threads: ! t.start() ! for t in threads: ! t.join() ! for t in threads: ! if not t.verifyWritten(): sys.exit(-1) |