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
2eab85b7
Kaydet (Commit)
2eab85b7
authored
Şub 13, 2015
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #21849: Ported from 2.7 tests for non-ASCII data.
üst
866ca88f
a25c542c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
_test_multiprocessing.py
Lib/test/_test_multiprocessing.py
+13
-7
No files found.
Lib/test/_test_multiprocessing.py
Dosyayı görüntüle @
2eab85b7
...
...
@@ -2020,6 +2020,12 @@ SERIALIZER = 'xmlrpclib'
class
_TestRemoteManager
(
BaseTestCase
):
ALLOWED_TYPES
=
(
'manager'
,)
values
=
[
'hello world'
,
None
,
True
,
2.25
,
'hall
\xe5
v
\xe4
rlden'
,
'
\u043f\u0440\u0438\u0432\u0456\u0442
\u0441\u0432\u0456\u0442
'
,
b
'hall
\xe5
v
\xe4
rlden'
,
]
result
=
values
[:]
@classmethod
def
_putter
(
cls
,
address
,
authkey
):
...
...
@@ -2028,7 +2034,8 @@ class _TestRemoteManager(BaseTestCase):
)
manager
.
connect
()
queue
=
manager
.
get_queue
()
queue
.
put
((
'hello world'
,
None
,
True
,
2.25
))
# Note that xmlrpclib will deserialize object as a list not a tuple
queue
.
put
(
tuple
(
cls
.
values
))
def
test_remote
(
self
):
authkey
=
os
.
urandom
(
32
)
...
...
@@ -2048,8 +2055,7 @@ class _TestRemoteManager(BaseTestCase):
manager2
.
connect
()
queue
=
manager2
.
get_queue
()
# Note that xmlrpclib will deserialize object as a list not a tuple
self
.
assertEqual
(
queue
.
get
(),
[
'hello world'
,
None
,
True
,
2.25
])
self
.
assertEqual
(
queue
.
get
(),
self
.
result
)
# Because we are using xmlrpclib for serialization instead of
# pickle this will cause a serialization error.
...
...
@@ -3405,12 +3411,12 @@ class TestNoForkBomb(unittest.TestCase):
name
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'mp_fork_bomb.py'
)
if
sm
!=
'fork'
:
rc
,
out
,
err
=
test
.
script_helper
.
assert_python_failure
(
name
,
sm
)
self
.
assertEqual
(
''
,
out
.
decode
(
'ascii'
)
)
self
.
assertIn
(
'RuntimeError'
,
err
.
decode
(
'ascii'
)
)
self
.
assertEqual
(
out
,
b
''
)
self
.
assertIn
(
b
'RuntimeError'
,
err
)
else
:
rc
,
out
,
err
=
test
.
script_helper
.
assert_python_ok
(
name
,
sm
)
self
.
assertEqual
(
'123'
,
out
.
decode
(
'ascii'
)
.
rstrip
()
)
self
.
assertEqual
(
''
,
err
.
decode
(
'ascii'
)
)
self
.
assertEqual
(
out
.
rstrip
(),
b
'123'
)
self
.
assertEqual
(
err
,
b
''
)
#
# Issue #17555: ForkAwareThreadLock
...
...
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