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
7e8bfa41
Kaydet (Commit)
7e8bfa41
authored
Ock 10, 2006
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add outstanding_crashes.py with tests for crashes.
üst
8cc4ef56
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
outstanding_bugs.py
Lib/test/outstanding_bugs.py
+3
-0
outstanding_crashes.py
Lib/test/outstanding_crashes.py
+38
-0
No files found.
Lib/test/outstanding_bugs.py
Dosyayı görüntüle @
7e8bfa41
...
@@ -22,3 +22,6 @@ class TestBug1385040(unittest.TestCase):
...
@@ -22,3 +22,6 @@ class TestBug1385040(unittest.TestCase):
def
test_main
():
def
test_main
():
test_support
.
run_unittest
(
TestBug1385040
)
test_support
.
run_unittest
(
TestBug1385040
)
if
__name__
==
"__main__"
:
test_main
()
Lib/test/outstanding_crashes.py
0 → 100644
Dosyayı görüntüle @
7e8bfa41
#
# This file is for everybody to add tests for crashes that aren't
# fixed yet. Please add a test case and appropriate description.
#
# When you fix one of the crashes, please move the test to the correct
# test_ module.
#
import
unittest
from
test
import
test_support
# Bug 1377858
#
# mwh's description:
# The problem is obvious if you read typeobject.c around line 660: the weakref
# list is cleared before __del__ is called, so any weakrefs added during the
# execution of __del__ are never informed of the object's death.
import
weakref
ref
=
None
class
TestBug1377858
(
unittest
.
TestCase
):
class
Target
(
object
):
def
__del__
(
self
):
global
ref
ref
=
weakref
.
ref
(
self
)
def
testBug1377858
(
self
):
w
=
self
.
__class__
.
Target
()
w
=
None
print
ref
()
def
test_main
():
test_support
.
run_unittest
(
TestBug1377858
)
if
__name__
==
"__main__"
:
test_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