[issue28562] test_asyncio fails on Android upon calling getaddrinfo()

2019-10-22 Thread STINNER Victor


STINNER Victor  added the comment:

Ok, thanks Xavier. If someone has an issue with test_asyncio on Android, either 
reopen this issue or open a new issue ;-)

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28562] test_asyncio fails on Android upon calling getaddrinfo()

2019-10-22 Thread Xavier de Gaye


Xavier de Gaye  added the comment:

According to my last post on this issue 2 years ago, this test "does not fail 
on android-24-x86_64". This means that it does not fail on API level 24. IMO 
the issue may be closed.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28562] test_asyncio fails on Android upon calling getaddrinfo()

2019-10-21 Thread STINNER Victor


STINNER Victor  added the comment:

Is the test still failing on the master branch of Python? Is the patch still 
needed?

--
nosy: +vstinner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28562] test_asyncio fails on Android upon calling getaddrinfo()

2017-11-21 Thread Xavier de Gaye

Xavier de Gaye  added the comment:

test_create_connection_service_name does not fail on android-24-x86_64.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28562] test_asyncio fails on Android upon calling getaddrinfo()

2016-10-30 Thread Xavier de Gaye

New submission from Xavier de Gaye:

The error:
==
ERROR: test_create_connection_service_name 
(test.test_asyncio.test_base_events.BaseEventLoopWithSelectorTests)
--
Traceback (most recent call last):
  File "/sdcard/org.bitbucket.pyona/lib/python3.7/unittest/mock.py", line 1179, 
in patched
return func(*args, **keywargs)
  File 
"/sdcard/org.bitbucket.pyona/lib/python3.7/test/test_asyncio/test_base_events.py",
 line 1209, in test_create_connection_service_name
t, p = self.loop.run_until_complete(coro)
  File "/sdcard/org.bitbucket.pyona/lib/python3.7/asyncio/base_events.py", line 
449, in run_until_complete
return future.result()
  File 
"/sdcard/org.bitbucket.pyona/lib/python3.7/concurrent/futures/thread.py", line 
55, in run
result = self.fn(*self.args, **self.kwargs)
  File "/sdcard/org.bitbucket.pyona/lib/python3.7/socket.py", line 743, in 
getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 9] servname not supported for ai_socktype


The same error occurs also in issue 26936.
msg266362 lists the conditions under which getaddrinfo() fails on Android.

With this patch, the test succeeds on both Android API levels 21 and 23 (there 
is no level 22).

--
components: Tests
files: getaddrinfo.patch
keywords: patch
messages: 279731
nosy: xdegaye, yselivanov
priority: normal
severity: normal
stage: patch review
status: open
title: test_asyncio fails on Android upon calling getaddrinfo()
type: behavior
versions: Python 3.6, Python 3.7
Added file: http://bugs.python.org/file45279/getaddrinfo.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com