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
8ed6fa1c
Kaydet (Commit)
8ed6fa1c
authored
Eyl 20, 2011
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Head merge
üst
a80b14cc
bc8f0821
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
test_multiprocessing.py
Lib/test/test_multiprocessing.py
+12
-2
No files found.
Lib/test/test_multiprocessing.py
Dosyayı görüntüle @
8ed6fa1c
...
...
@@ -35,7 +35,13 @@ import multiprocessing.managers
import
multiprocessing.heap
import
multiprocessing.pool
from
multiprocessing
import
util
,
reduction
from
multiprocessing
import
util
try
:
from
multiprocessing
import
reduction
HAS_REDUCTION
=
True
except
ImportError
:
HAS_REDUCTION
=
False
try
:
from
multiprocessing.sharedctypes
import
Value
,
copy
...
...
@@ -1631,6 +1637,7 @@ class _TestConnection(BaseTestCase):
os
.
write
(
fd
,
data
)
os
.
close
(
fd
)
@unittest.skipUnless
(
HAS_REDUCTION
,
"test needs multiprocessing.reduction"
)
def
test_fd_transfer
(
self
):
if
self
.
TYPE
!=
'processes'
:
self
.
skipTest
(
"only makes sense with processes"
)
...
...
@@ -1648,6 +1655,7 @@ class _TestConnection(BaseTestCase):
with
open
(
test
.
support
.
TESTFN
,
"rb"
)
as
f
:
self
.
assertEqual
(
f
.
read
(),
b
"foo"
)
@unittest.skipUnless
(
HAS_REDUCTION
,
"test needs multiprocessing.reduction"
)
@unittest.skipIf
(
sys
.
platform
==
"win32"
,
"test semantics don't make sense on Windows"
)
@unittest.skipIf
(
MAXFD
<=
256
,
...
...
@@ -1987,10 +1995,12 @@ class _TestImportStar(BaseTestCase):
'multiprocessing'
,
'multiprocessing.connection'
,
'multiprocessing.heap'
,
'multiprocessing.managers'
,
'multiprocessing.pool'
,
'multiprocessing.process'
,
'multiprocessing.reduction'
,
'multiprocessing.synchronize'
,
'multiprocessing.util'
]
if
HAS_REDUCTION
:
modules
.
append
(
'multiprocessing.reduction'
)
if
c_int
is
not
None
:
# This module requires _ctypes
modules
.
append
(
'multiprocessing.sharedctypes'
)
...
...
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