Esempio n. 1
0
 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)
Esempio n. 2
0
 def test_free_after_iterating(self):
     support.check_free_after_iterating(self, iter, self.type2test)
     support.check_free_after_iterating(self, reversed, self.type2test)
Esempio n. 3
0
 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)
Esempio n. 4
0
 def test_free_after_iterating(self):
     support.check_free_after_iterating(self, iter, self.type2test)
     support.check_free_after_iterating(self, reversed, self.type2test)
Esempio n. 5
0
 def test_free_after_iterating(self):
     check_free_after_iterating(self, iter, SequenceClass, (0,))