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
eef20de7
Kaydet (Commit)
eef20de7
authored
Mar 06, 2015
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #22853: Added regression test for using multiprocessing.Queue at import
time. Patch by Davin Potts.
üst
f01c7829
f8904e99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
_test_multiprocessing.py
Lib/test/_test_multiprocessing.py
+21
-0
No files found.
Lib/test/_test_multiprocessing.py
Dosyayı görüntüle @
eef20de7
...
...
@@ -713,6 +713,27 @@ class _TestQueue(BaseTestCase):
for
p
in
workers
:
p
.
join
()
def
test_no_import_lock_contention
(
self
):
with
test
.
support
.
temp_cwd
():
module_name
=
'imported_by_an_imported_module'
with
open
(
module_name
+
'.py'
,
'w'
)
as
f
:
f
.
write
(
"""if 1:
import multiprocessing
q = multiprocessing.Queue()
q.put('knock knock')
q.get(timeout=3)
q.close()
del q
"""
)
with
test
.
support
.
DirsOnSysPath
(
os
.
getcwd
()):
try
:
__import__
(
module_name
)
except
pyqueue
.
Empty
:
self
.
fail
(
"Probable regression on import lock contention;"
" see Issue #22853"
)
def
test_timeout
(
self
):
q
=
multiprocessing
.
Queue
()
start
=
time
.
time
()
...
...
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