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
a6becaa9
Kaydet (Commit)
a6becaa9
authored
May 03, 2012
tarafından
Richard Oudkerk
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix dangling warning for test_multiprocessing
üst
bf4e2663
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
managers.py
Lib/multiprocessing/managers.py
+4
-1
test_multiprocessing.py
Lib/test/test_multiprocessing.py
+3
-0
No files found.
Lib/multiprocessing/managers.py
Dosyayı görüntüle @
a6becaa9
...
@@ -548,7 +548,10 @@ class BaseManager(object):
...
@@ -548,7 +548,10 @@ class BaseManager(object):
'''
'''
Join the manager process (if it has been spawned)
Join the manager process (if it has been spawned)
'''
'''
self
.
_process
.
join
(
timeout
)
if
self
.
_process
is
not
None
:
self
.
_process
.
join
(
timeout
)
if
not
self
.
_process
.
is_alive
():
self
.
_process
=
None
def
_debug_info
(
self
):
def
_debug_info
(
self
):
'''
'''
...
...
Lib/test/test_multiprocessing.py
Dosyayı görüntüle @
a6becaa9
...
@@ -2516,6 +2516,7 @@ class TestInitializers(unittest.TestCase):
...
@@ -2516,6 +2516,7 @@ class TestInitializers(unittest.TestCase):
def
tearDown
(
self
):
def
tearDown
(
self
):
self
.
mgr
.
shutdown
()
self
.
mgr
.
shutdown
()
self
.
mgr
.
join
()
def
test_manager_initializer
(
self
):
def
test_manager_initializer
(
self
):
m
=
multiprocessing
.
managers
.
SyncManager
()
m
=
multiprocessing
.
managers
.
SyncManager
()
...
@@ -2523,6 +2524,7 @@ class TestInitializers(unittest.TestCase):
...
@@ -2523,6 +2524,7 @@ class TestInitializers(unittest.TestCase):
m
.
start
(
initializer
,
(
self
.
ns
,))
m
.
start
(
initializer
,
(
self
.
ns
,))
self
.
assertEqual
(
self
.
ns
.
test
,
1
)
self
.
assertEqual
(
self
.
ns
.
test
,
1
)
m
.
shutdown
()
m
.
shutdown
()
m
.
join
()
def
test_pool_initializer
(
self
):
def
test_pool_initializer
(
self
):
self
.
assertRaises
(
TypeError
,
multiprocessing
.
Pool
,
initializer
=
1
)
self
.
assertRaises
(
TypeError
,
multiprocessing
.
Pool
,
initializer
=
1
)
...
@@ -2818,6 +2820,7 @@ def test_main(run=None):
...
@@ -2818,6 +2820,7 @@ def test_main(run=None):
ManagerMixin
.
pool
.
terminate
()
ManagerMixin
.
pool
.
terminate
()
ManagerMixin
.
pool
.
join
()
ManagerMixin
.
pool
.
join
()
ManagerMixin
.
manager
.
shutdown
()
ManagerMixin
.
manager
.
shutdown
()
ManagerMixin
.
manager
.
join
()
ThreadsMixin
.
pool
.
join
()
ThreadsMixin
.
pool
.
join
()
ProcessesMixin
.
pool
.
join
()
ProcessesMixin
.
pool
.
join
()
del
ProcessesMixin
.
pool
,
ThreadsMixin
.
pool
,
ManagerMixin
.
pool
del
ProcessesMixin
.
pool
,
ThreadsMixin
.
pool
,
ManagerMixin
.
pool
...
...
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