コード例 #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)
コード例 #2
0
ファイル: test_array.py プロジェクト: Victor-Savu/cpython
 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,))
コード例 #3
0
ファイル: test_ordered_dict.py プロジェクト: 3lnc/cpython
 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)
コード例 #4
0
 def test_free_after_iterating(self):
     check_free_after_iterating(self, iter, SequenceClass, (0, ))
コード例 #5
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)
コード例 #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, ))
コード例 #7
0
ファイル: seq_tests.py プロジェクト: lixianyang/cpython
 def test_free_after_iterating(self):
     support.check_free_after_iterating(self, iter, self.type2test)
     support.check_free_after_iterating(self, reversed, self.type2test)
コード例 #8
0
ファイル: test_iter.py プロジェクト: ARK4579/cpython
 def test_free_after_iterating(self):
     check_free_after_iterating(self, iter, SequenceClass, (0,))