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
7c08744f
Kaydet (Commit)
7c08744f
authored
Eyl 19, 2010
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make error more explicit in test_finalize_with_trace
üst
fedd4815
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
test_threading.py
Lib/test/test_threading.py
+8
-3
No files found.
Lib/test/test_threading.py
Dosyayı görüntüle @
7c08744f
...
@@ -304,7 +304,7 @@ class ThreadTests(BaseTestCase):
...
@@ -304,7 +304,7 @@ class ThreadTests(BaseTestCase):
# Issue1733757
# Issue1733757
# Avoid a deadlock when sys.settrace steps into threading._shutdown
# Avoid a deadlock when sys.settrace steps into threading._shutdown
import
subprocess
import
subprocess
rc
=
subprocess
.
call
([
sys
.
executable
,
"-c"
,
"""if 1:
p
=
subprocess
.
Popen
([
sys
.
executable
,
"-c"
,
"""if 1:
import sys, threading
import sys, threading
# A deadlock-killer, to prevent the
# A deadlock-killer, to prevent the
...
@@ -324,9 +324,14 @@ class ThreadTests(BaseTestCase):
...
@@ -324,9 +324,14 @@ class ThreadTests(BaseTestCase):
return func
return func
sys.settrace(func)
sys.settrace(func)
"""
])
"""
],
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
stdout
,
stderr
=
p
.
communicate
()
rc
=
p
.
returncode
self
.
assertFalse
(
rc
==
2
,
"interpreted was blocked"
)
self
.
assertFalse
(
rc
==
2
,
"interpreted was blocked"
)
self
.
assertTrue
(
rc
==
0
,
"Unexpected error"
)
self
.
assertTrue
(
rc
==
0
,
"Unexpected error: "
+
ascii
(
stderr
))
def
test_join_nondaemon_on_shutdown
(
self
):
def
test_join_nondaemon_on_shutdown
(
self
):
# Issue 1722344
# Issue 1722344
...
...
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