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
413118eb
Kaydet (Commit)
413118eb
authored
Eyl 13, 2018
tarafından
Michael Felt
Kaydeden (comit)
Andrew Svetlov
Eyl 13, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix test_asyncio for AIX - do not call transport.get_extra_info('sockname') (#8907)
üst
a3c8ba72
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
test_events.py
Lib/test/test_asyncio/test_events.py
+6
-4
2018-08-24-20-23-15.bpo-34490.vb2cx4.rst
...EWS.d/next/Tests/2018-08-24-20-23-15.bpo-34490.vb2cx4.rst
+2
-0
No files found.
Lib/test/test_asyncio/test_events.py
Dosyayı görüntüle @
413118eb
...
@@ -41,9 +41,11 @@ def tearDownModule():
...
@@ -41,9 +41,11 @@ def tearDownModule():
asyncio
.
set_event_loop_policy
(
None
)
asyncio
.
set_event_loop_policy
(
None
)
def
osx_tiger
():
def
broken_unix_getsockname
():
"""Return True if the platform is Mac OS 10.4 or older."""
"""Return True if the platform is Mac OS 10.4 or older."""
if
sys
.
platform
!=
'darwin'
:
if
sys
.
platform
.
startswith
(
"aix"
):
return
True
elif
sys
.
platform
!=
'darwin'
:
return
False
return
False
version
=
platform
.
mac_ver
()[
0
]
version
=
platform
.
mac_ver
()[
0
]
version
=
tuple
(
map
(
int
,
version
.
split
(
'.'
)))
version
=
tuple
(
map
(
int
,
version
.
split
(
'.'
)))
...
@@ -617,7 +619,7 @@ class EventLoopTestsMixin:
...
@@ -617,7 +619,7 @@ class EventLoopTestsMixin:
def
test_create_unix_connection
(
self
):
def
test_create_unix_connection
(
self
):
# Issue #20682: On Mac OS X Tiger, getsockname() returns a
# Issue #20682: On Mac OS X Tiger, getsockname() returns a
# zero-length address for UNIX socket.
# zero-length address for UNIX socket.
check_sockname
=
not
osx_tiger
()
check_sockname
=
not
broken_unix_getsockname
()
with
test_utils
.
run_test_unix_server
()
as
httpd
:
with
test_utils
.
run_test_unix_server
()
as
httpd
:
conn_fut
=
self
.
loop
.
create_unix_connection
(
conn_fut
=
self
.
loop
.
create_unix_connection
(
...
@@ -748,7 +750,7 @@ class EventLoopTestsMixin:
...
@@ -748,7 +750,7 @@ class EventLoopTestsMixin:
def
test_create_ssl_unix_connection
(
self
):
def
test_create_ssl_unix_connection
(
self
):
# Issue #20682: On Mac OS X Tiger, getsockname() returns a
# Issue #20682: On Mac OS X Tiger, getsockname() returns a
# zero-length address for UNIX socket.
# zero-length address for UNIX socket.
check_sockname
=
not
osx_tiger
()
check_sockname
=
not
broken_unix_getsockname
()
with
test_utils
.
run_test_unix_server
(
use_ssl
=
True
)
as
httpd
:
with
test_utils
.
run_test_unix_server
(
use_ssl
=
True
)
as
httpd
:
create_connection
=
functools
.
partial
(
create_connection
=
functools
.
partial
(
...
...
Misc/NEWS.d/next/Tests/2018-08-24-20-23-15.bpo-34490.vb2cx4.rst
0 → 100644
Dosyayı görüntüle @
413118eb
On AIX with AF_UNIX family sockets getsockname() does not provide 'sockname',
so skip calls to transport.get_extra_info('sockname')
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