[Zope-Checkins] CVS: Zope/lib/python/OFS/tests - testRanges.py:1.11.12.2
Martijn Pieters
mj@zope.com
Wed, 13 Nov 2002 14:19:57 -0500
Update of /cvs-repository/Zope/lib/python/OFS/tests
In directory cvs.zope.org:/tmp/cvs-serv24412/lib/python/OFS/tests
Modified Files:
Tag: Zope-2_5-branch
testRanges.py
Log Message:
Backport of fix for #671; pdata chains have remaining size at the start, not
the end.
=== Zope/lib/python/OFS/tests/testRanges.py 1.11.12.1 => 1.11.12.2 ===
--- Zope/lib/python/OFS/tests/testRanges.py:1.11.12.1 Wed Aug 21 16:51:18 2002
+++ Zope/lib/python/OFS/tests/testRanges.py Wed Nov 13 14:19:57 2002
@@ -33,7 +33,8 @@
def createBigFile():
# Create a file that is several 1<<16 blocks of data big, to force the
# use of chained Pdata objects.
- size = (1<<16) * 5
+ # Make sure we create a file that isn't of x * 1<<16 length! Coll #671
+ size = (1<<16) * 5 + 12345
file = cStringIO.StringIO()
def addLetter(x, add=file.write, l=string.letters,