From 63eecc7eee12e473701c834592db00ff1bf43423 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 22 Feb 2007 23:55:25 +0000 Subject: Fix the last two tests. Thanks to Brett for fixing so many before! I see some tracebacks from threads when testing test_bsddbd3 (on OSX) but the test claims to pass, so I'm ignoring these. --- Lib/test/test_bsddb.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Lib/test/test_bsddb.py') diff --git a/Lib/test/test_bsddb.py b/Lib/test/test_bsddb.py index 0fb8e877d3..3a62f9c1c7 100755 --- a/Lib/test/test_bsddb.py +++ b/Lib/test/test_bsddb.py @@ -198,9 +198,9 @@ class TestBSDDB(unittest.TestCase): # do the bsddb._DBWithCursor _iter_mixin internals leak cursors? nc1 = len(self.f._cursor_refs) # create iterator - i = iter(self.f.items()) + i = iter(self.f.iteritems()) nc2 = len(self.f._cursor_refs) - # use the iterator (should run to the first yeild, creating the cursor) + # use the iterator (should run to the first yield, creating the cursor) k, v = i.next() nc3 = len(self.f._cursor_refs) # destroy the iterator; this should cause the weakref callback @@ -210,7 +210,7 @@ class TestBSDDB(unittest.TestCase): self.assertEqual(nc1, nc2) self.assertEqual(nc1, nc4) - self.assert_(nc3 == nc1+1) + self.assertEqual(nc3, nc1+1) def test_popitem(self): k, v = self.f.popitem() -- cgit v1.2.1