Update of /cvsroot/pywin32/pywin32/win32/test
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv1160/win32/test
Modified Files:
handles.py
Log Message:
py3k friendly; use sys.maxsize or sys.maxint
Index: handles.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/test/handles.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** handles.py 30 Oct 2007 09:53:32 -0000 1.4
--- handles.py 11 Dec 2008 07:00:12 -0000 1.5
***************
*** 88,92 ****
# >>> struct.unpack("P", struct.pack("P", -1))
# (4294967295L,)
! pywintypes.HANDLE(sys.maxint+1)
def testGC(self):
--- 88,96 ----
# >>> struct.unpack("P", struct.pack("P", -1))
# (4294967295L,)
! try:
! big = sys.maxsize
! except AttributeError:
! big = sys.maxint
! pywintypes.HANDLE(big+1)
def testGC(self):
|