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
2d702465
Kaydet (Commit)
2d702465
authored
Agu 06, 2002
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add testcase for SF bug 574207 (chained __slots__ dealloc segfault).
Fix forthcoming.
üst
2d3c03df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
test_descr.py
Lib/test/test_descr.py
+14
-0
No files found.
Lib/test/test_descr.py
Dosyayı görüntüle @
2d702465
...
@@ -3219,6 +3219,19 @@ def subtype_resurrection():
...
@@ -3219,6 +3219,19 @@ def subtype_resurrection():
# it as a leak.
# it as a leak.
del
C
.
__del__
del
C
.
__del__
def
slottrash
():
# Deallocating deeply nested slotted trash caused stack overflows
if
verbose
:
print
"Testing slot trash..."
class
trash
(
object
):
__slots__
=
[
'x'
]
def
__init__
(
self
,
x
):
self
.
x
=
x
o
=
None
for
i
in
xrange
(
50000
):
o
=
trash
(
o
)
del
o
def
do_this_first
():
def
do_this_first
():
if
verbose
:
if
verbose
:
print
"Testing SF bug 551412 ..."
print
"Testing SF bug 551412 ..."
...
@@ -3310,6 +3323,7 @@ def test_main():
...
@@ -3310,6 +3323,7 @@ def test_main():
copy_setstate
()
copy_setstate
()
slices
()
slices
()
subtype_resurrection
()
subtype_resurrection
()
slottrash
()
if
verbose
:
print
"All OK"
if
verbose
:
print
"All OK"
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
...
...
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