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
aabe0b3e
Kaydet (Commit)
aabe0b3e
authored
May 29, 2003
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add testcase for SF 742911.
üst
b25a52aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
test_descr.py
Lib/test/test_descr.py
+24
-0
No files found.
Lib/test/test_descr.py
Dosyayı görüntüle @
aabe0b3e
...
...
@@ -3871,8 +3871,32 @@ def carloverre():
else
:
raise
TestFailed
,
"Carlo Verre __delattr__ succeeded!"
def
weakref_segfault
():
# SF 742911
if
verbose
:
print
"Testing weakref segfault..."
import
weakref
class
Provoker
:
def
__init__
(
self
,
referrent
):
self
.
ref
=
weakref
.
ref
(
referrent
)
def
__del__
(
self
):
x
=
self
.
ref
()
print
x
return
x
class
Oops
(
object
):
pass
o
=
Oops
()
o
.
whatever
=
Provoker
(
o
)
del
o
def
test_main
():
weakref_segfault
()
# Must be first, somehow
do_this_first
()
class_docstrings
()
lists
()
...
...
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