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
7b2a37b7
Unverified
Kaydet (Commit)
7b2a37b7
authored
Şub 09, 2019
tarafından
Pablo Galindo
Kaydeden (comit)
GitHub
Şub 09, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make sure the BaseManager in test_multiprocessing is cleaned up correctly (GH-11653)
üst
613f729e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
_test_multiprocessing.py
Lib/test/_test_multiprocessing.py
+7
-2
No files found.
Lib/test/_test_multiprocessing.py
Dosyayı görüntüle @
7b2a37b7
...
@@ -2817,6 +2817,7 @@ class _TestRemoteManager(BaseTestCase):
...
@@ -2817,6 +2817,7 @@ class _TestRemoteManager(BaseTestCase):
address
=
(
test
.
support
.
HOST
,
0
),
authkey
=
authkey
,
serializer
=
SERIALIZER
address
=
(
test
.
support
.
HOST
,
0
),
authkey
=
authkey
,
serializer
=
SERIALIZER
)
)
manager
.
start
()
manager
.
start
()
self
.
addCleanup
(
manager
.
shutdown
)
p
=
self
.
Process
(
target
=
self
.
_putter
,
args
=
(
manager
.
address
,
authkey
))
p
=
self
.
Process
(
target
=
self
.
_putter
,
args
=
(
manager
.
address
,
authkey
))
p
.
daemon
=
True
p
.
daemon
=
True
...
@@ -2836,7 +2837,6 @@ class _TestRemoteManager(BaseTestCase):
...
@@ -2836,7 +2837,6 @@ class _TestRemoteManager(BaseTestCase):
# Make queue finalizer run before the server is stopped
# Make queue finalizer run before the server is stopped
del
queue
del
queue
manager
.
shutdown
()
class
_TestManagerRestart
(
BaseTestCase
):
class
_TestManagerRestart
(
BaseTestCase
):
...
@@ -2852,6 +2852,7 @@ class _TestManagerRestart(BaseTestCase):
...
@@ -2852,6 +2852,7 @@ class _TestManagerRestart(BaseTestCase):
authkey
=
os
.
urandom
(
32
)
authkey
=
os
.
urandom
(
32
)
manager
=
QueueManager
(
manager
=
QueueManager
(
address
=
(
test
.
support
.
HOST
,
0
),
authkey
=
authkey
,
serializer
=
SERIALIZER
)
address
=
(
test
.
support
.
HOST
,
0
),
authkey
=
authkey
,
serializer
=
SERIALIZER
)
try
:
srvr
=
manager
.
get_server
()
srvr
=
manager
.
get_server
()
addr
=
srvr
.
address
addr
=
srvr
.
address
# Close the connection.Listener socket which gets opened as a part
# Close the connection.Listener socket which gets opened as a part
...
@@ -2865,12 +2866,15 @@ class _TestManagerRestart(BaseTestCase):
...
@@ -2865,12 +2866,15 @@ class _TestManagerRestart(BaseTestCase):
queue
=
manager
.
get_queue
()
queue
=
manager
.
get_queue
()
self
.
assertEqual
(
queue
.
get
(),
'hello world'
)
self
.
assertEqual
(
queue
.
get
(),
'hello world'
)
del
queue
del
queue
finally
:
if
hasattr
(
manager
,
"shutdown"
):
manager
.
shutdown
()
manager
.
shutdown
()
manager
=
QueueManager
(
manager
=
QueueManager
(
address
=
addr
,
authkey
=
authkey
,
serializer
=
SERIALIZER
)
address
=
addr
,
authkey
=
authkey
,
serializer
=
SERIALIZER
)
try
:
try
:
manager
.
start
()
manager
.
start
()
self
.
addCleanup
(
manager
.
shutdown
)
except
OSError
as
e
:
except
OSError
as
e
:
if
e
.
errno
!=
errno
.
EADDRINUSE
:
if
e
.
errno
!=
errno
.
EADDRINUSE
:
raise
raise
...
@@ -2879,7 +2883,8 @@ class _TestManagerRestart(BaseTestCase):
...
@@ -2879,7 +2883,8 @@ class _TestManagerRestart(BaseTestCase):
time
.
sleep
(
1.0
)
time
.
sleep
(
1.0
)
manager
=
QueueManager
(
manager
=
QueueManager
(
address
=
addr
,
authkey
=
authkey
,
serializer
=
SERIALIZER
)
address
=
addr
,
authkey
=
authkey
,
serializer
=
SERIALIZER
)
manager
.
shutdown
()
if
hasattr
(
manager
,
"shutdown"
):
self
.
addCleanup
(
manager
.
shutdown
)
#
#
#
#
...
...
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