def test_free_after_iterating(self): test_support.check_free_after_iterating(self, iter, dict) test_support.check_free_after_iterating(self, lambda d: d.iterkeys(), dict) test_support.check_free_after_iterating(self, lambda d: d.itervalues(), dict) test_support.check_free_after_iterating(self, lambda d: d.iteritems(), dict) test_support.check_free_after_iterating(self, lambda d: iter(d.viewkeys()), dict) test_support.check_free_after_iterating(self, lambda d: iter(d.viewvalues()), dict) test_support.check_free_after_iterating(self, lambda d: iter(d.viewitems()), dict)
def test_free_after_iterating(self): support.check_free_after_iterating(self, iter, self.type2test) support.check_free_after_iterating(self, reversed, self.type2test)
def test_free_after_iterating(self): check_free_after_iterating(self, iter, SequenceClass, (0,))