Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
631f513f
Kaydet (Commit)
631f513f
authored
Nis 16, 2006
tarafından
Thomas Wouters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
This test no longer leaks, and test_generators sufficiently tests it to
prevent unreported regression.
üst
195e4e67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
25 deletions
+0
-25
test_tee.py
Lib/test/leakers/test_tee.py
+0
-25
No files found.
Lib/test/leakers/test_tee.py
deleted
100644 → 0
Dosyayı görüntüle @
195e4e67
# Test case taken from test_generators
# See http://mail.python.org/pipermail/python-dev/2005-November/058339.html
from
itertools
import
tee
import
gc
def
leak
():
def
inner
():
def
fib
():
def
yield_identity_forever
(
g
):
while
1
:
yield
g
def
_fib
():
for
i
in
yield_identity_forever
(
head
):
yield
i
head
,
tail
,
result
=
tee
(
_fib
(),
3
)
return
result
x
=
fib
()
x
.
next
()
inner
()
gc
.
collect
()
;
gc
.
collect
()
# this is expected to return 0
return
gc
.
collect
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment