[pywin32-checkins] pywin32/com/win32com/test testStreams.py, 1.9, 1.10
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
|
From: Mark H. <mha...@us...> - 2010-11-12 03:35:26
|
Update of /cvsroot/pywin32/pywin32/com/win32com/test In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv4684/com/win32com/test Modified Files: testStreams.py Log Message: Fix py3k problem with PyWinObject_AsLARGE_INTEGER and ints > 32bits Index: testStreams.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/test/testStreams.py,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** testStreams.py 7 Jan 2009 06:03:29 -0000 1.9 --- testStreams.py 12 Nov 2010 03:35:16 -0000 1.10 *************** *** 109,112 **** --- 109,118 ---- self.assertEqual(s.data, mydata) + def testseek(self): + s = Stream(str2bytes('yo')) + s = win32com.server.util.wrap(s, pythoncom.IID_IStream) + # we used to die in py3k passing a value > 32bits + s.Seek(0x100000000, pythoncom.STREAM_SEEK_SET) + def testerrors(self): # setup a test logger to capture tracebacks etc. |