[pywin32-checkins] pywin32/win32/test handles.py,1.4,1.5
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-12-11 07:00:18
|
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): |