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
bb0bb30a
Kaydet (Commit)
bb0bb30a
authored
Eki 27, 2009
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Suppress transient refleaks in test_threading.
üst
a763c063
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
test_threading.py
Lib/test/test_threading.py
+12
-3
No files found.
Lib/test/test_threading.py
Dosyayı görüntüle @
bb0bb30a
...
...
@@ -54,7 +54,16 @@ class TestThread(threading.Thread):
print
'
%
s is finished.
%
d tasks are running'
%
(
self
.
name
,
self
.
nrunning
.
get
())
class
ThreadTests
(
unittest
.
TestCase
):
class
BaseTestCase
(
unittest
.
TestCase
):
def
setUp
(
self
):
self
.
_threads
=
test
.
test_support
.
threading_setup
()
def
tearDown
(
self
):
test
.
test_support
.
threading_cleanup
(
*
self
.
_threads
)
test
.
test_support
.
reap_children
()
class
ThreadTests
(
BaseTestCase
):
# Create a bunch of threads, let each do some work, wait until all are
# done.
...
...
@@ -382,7 +391,7 @@ class ThreadTests(unittest.TestCase):
sys
.
getrefcount
(
weak_raising_cyclic_object
())))
class
ThreadJoinOnShutdown
(
unittest
.
TestCase
):
class
ThreadJoinOnShutdown
(
Base
TestCase
):
def
_run_and_join
(
self
,
script
):
script
=
"""if 1:
...
...
@@ -465,7 +474,7 @@ class ThreadJoinOnShutdown(unittest.TestCase):
self
.
_run_and_join
(
script
)
class
ThreadingExceptionTests
(
unittest
.
TestCase
):
class
ThreadingExceptionTests
(
Base
TestCase
):
# A RuntimeError should be raised if Thread.start() is called
# multiple times.
def
test_start_thread_again
(
self
):
...
...
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