Example #1
0
 def test_free_after_iterating(self):
     support.check_free_after_iterating(self, iter, dict)
     support.check_free_after_iterating(self, lambda d: iter(d.keys()),
                                        dict)
     support.check_free_after_iterating(self, lambda d: iter(d.values()),
                                        dict)
     support.check_free_after_iterating(self, lambda d: iter(d.items()),
                                        dict)
Example #2
0
 def test_free_after_iterating(self):
     support.check_free_after_iterating(self, iter, array.array,
                                        (self.typecode,))
     support.check_free_after_iterating(self, reversed, array.array,
                                        (self.typecode,))
Example #3
0
 def test_free_after_iterating(self):
     support.check_free_after_iterating(self, iter, self.OrderedDict)
     support.check_free_after_iterating(self, lambda d: iter(d.keys()), self.OrderedDict)
     support.check_free_after_iterating(self, lambda d: iter(d.values()), self.OrderedDict)
     support.check_free_after_iterating(self, lambda d: iter(d.items()), self.OrderedDict)
Example #4
0
 def test_free_after_iterating(self):
     check_free_after_iterating(self, iter, SequenceClass, (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)
Example #6
0
 def test_free_after_iterating(self):
     support.check_free_after_iterating(self, iter, array.array,
                                        (self.typecode, ))
     support.check_free_after_iterating(self, reversed, array.array,
                                        (self.typecode, ))
Example #7
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)
Example #8
0
 def test_free_after_iterating(self):
     check_free_after_iterating(self, iter, SequenceClass, (0,))