[Zope-CVS] CVS: Products/ZCTextIndex/tests - mailtest.py:1.5
Tim Peters
tim.one@comcast.net
Sat, 18 May 2002 09:11:56 -0400
Update of /cvs-repository/Products/ZCTextIndex/tests
In directory cvs.zope.org:/tmp/cvs-serv8643/tests
Modified Files:
mailtest.py
Log Message:
Pack at the end even if the # of msgs isn't an exact multiple of
PACK_INTERVAL.
=== Products/ZCTextIndex/tests/mailtest.py 1.4 => 1.5 ===
get_transaction().commit()
- mbox = mailbox.UnixMailbox(open(mboxfile))
+ mbox = mailbox.UnixMailbox(open(mboxfile, 'rb'))
if VERBOSE:
print "opened", mboxfile
if not NUM:
@@ -121,7 +121,7 @@
get_transaction().commit()
- if PACK_INTERVAL and i % PACK_INTERVAL != 0:
+ if PACK_INTERVAL:
if VERBOSE >= 2:
print "packing one last time..."
p0 = time.clock()