[Zodb-checkins] CVS: ZODB3/ZODB/tests - IteratorStorage.py:1.12.8.1

Jeremy Hylton jeremy@zope.com
Wed, 18 Dec 2002 16:21:09 -0500


Update of /cvs-repository/ZODB3/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv7996/ZODB/tests

Modified Files:
      Tag: ZODB3-3_1-branch
	IteratorStorage.py 
Log Message:
Merge improvement from ZODB3-fast-restart-branch

Explicitly close a few iterators.


=== ZODB3/ZODB/tests/IteratorStorage.py 1.12 => 1.12.8.1 ===
--- ZODB3/ZODB/tests/IteratorStorage.py:1.12	Wed Aug 14 18:07:09 2002
+++ ZODB3/ZODB/tests/IteratorStorage.py	Wed Dec 18 16:21:09 2002
@@ -25,6 +25,7 @@
                 eq(zodb_unpickle(rec.data), MinPO(val))
                 val = val + 1
         eq(val, val0 + len(revids))
+        txniter.close()
 
 class IteratorStorage(IteratorCompare):
 
@@ -168,3 +169,5 @@
         # they were the same length
         self.assertRaises(IndexError, iter1.next)
         self.assertRaises(IndexError, iter2.next)
+        iter1.close()
+        iter2.close()