[Checkins] SVN: persistent/trunk/ Try working around 'long long' overflow.
Tres Seaver
cvs-admin at zope.org
Mon Aug 27 13:17:54 UTC 2012
Log message for revision 127590:
Try working around 'long long' overflow.
Changed:
_U persistent/trunk/
U persistent/trunk/persistent/tests/test_persistence.py
-=-
Modified: persistent/trunk/persistent/tests/test_persistence.py
===================================================================
--- persistent/trunk/persistent/tests/test_persistence.py 2012-08-27 12:18:19 UTC (rev 127589)
+++ persistent/trunk/persistent/tests/test_persistence.py 2012-08-27 13:17:50 UTC (rev 127590)
@@ -508,12 +508,8 @@
self.assertEqual(inst._p_estimated_size, 16777215 * 64)
def test_assign_p_estimated_size_bigger_than_sys_maxint(self):
- try:
- from sys import maxint
- except ImportError: #pragma NO COVER PYTHON3
- maxint = 2**32 - 1
inst = self._makeOne()
- inst._p_estimated_size = maxint + 1
+ inst._p_estimated_size = 2**63 -1 #largest 'long long' in C
self.assertEqual(inst._p_estimated_size, 16777215 * 64)
def test___getattribute___p__names(self):
More information about the checkins
mailing list