[Zope-CVS] CVS: Products/ZCTextIndex/tests - mailtest.py:1.6

Tim Peters tim.one@comcast.net
Sat, 18 May 2002 10:56:00 -0400


Update of /cvs-repository/Products/ZCTextIndex/tests
In directory cvs.zope.org:/tmp/cvs-serv3381/tests

Modified Files:
	mailtest.py 
Log Message:
Revert braindead change to final pack (it was my change, so it's OK for
me to call it braindead <wink>).


=== Products/ZCTextIndex/tests/mailtest.py 1.5 => 1.6 ===
     get_transaction().commit()
 
-    if PACK_INTERVAL:
+    if PACK_INTERVAL and i % PACK_INTERVAL != 0:
         if VERBOSE >= 2:
             print "packing one last time..."
         p0 = time.clock()
@@ -150,7 +150,7 @@
         if VERBOSE:
             msg = docs[docid]
             # print 3 lines of context
-            CONTEXT = 5
+            CONTEXT = 5000
             ctx = msg.text.split("\n", CONTEXT)
             del ctx[-1]
             print "-" * 60