Commit 4bdf0547 authored by Marius Gedminas's avatar Marius Gedminas

Fix ResourceWarnings in checkIterateRecordsRepeatedly

parent 8fccbeed
......@@ -142,9 +142,11 @@ class IteratorStorage(IteratorCompare):
def checkIterateRecordsRepeatedly(self):
self._dostore()
tinfo = next(self._storage.iterator())
it = self._storage.iterator()
tinfo = next(it)
self.assertEqual(1, len(list(tinfo)))
self.assertEqual(1, len(list(tinfo)))
it.close()
def checkIterateWhileWriting(self):
self._dostore()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment