[issue26936] android: test_socket fails

2016-11-18 Thread Xavier de Gaye
Xavier de Gaye added the comment: New patch using support.less_than_android_api(level). -- stage: patch review -> commit review Added file: http://bugs.python.org/file45534/test_socket_2.patch ___ Python tracker <http://bugs.python.org/issu

[issue28740] Add sys.getandroidapilevel()

2016-11-18 Thread Xavier de Gaye
Xavier de Gaye added the comment: > I proposed to add a new function to the sys module: sys.getandroidapilevel() This would also help fixing the long standing issue 16255, and possibly also issue 16353. -- ___ Python tracker &l

[issue26865] Meta-issue: support of the android platform

2016-11-18 Thread Xavier de Gaye
Xavier de Gaye added the comment: issue #28740: Add sys.getandroidapilevel() -- dependencies: +Add sys.getandroidapilevel() ___ Python tracker <http://bugs.python.org/issue26

[issue28740] Add sys.getandroidapilevel()

2016-11-18 Thread Xavier de Gaye
Xavier de Gaye added the comment: Patch tested with success on the android-24 emulator. -- ___ Python tracker <http://bugs.python.org/issue28740> ___ ___ Pytho

[issue28740] Add sys.getandroidapilevel()

2016-11-19 Thread Xavier de Gaye
Xavier de Gaye added the comment: __system_property_get() is not a public API, see Android bug report [1]. In this stackoverflow question, an Android developer confirms this point and suggests to use the file /system/build.prop instead, noting however that "build.prop isn't guaran

[issue28740] Add sys.getandroidapilevel()

2016-11-19 Thread Xavier de Gaye
Xavier de Gaye added the comment: The build time Android API level is also a valuable information to Python users (application developers), it may be used at installation time or to detect a version mismatch. -- ___ Python tracker <h

[issue28746] cannot set_inheritable() for a file descriptor on Android

2016-11-19 Thread Xavier de Gaye
New submission from Xavier de Gaye: test_socket on Android fails with: FAIL: test_set_inheritable (test.test_socket.InheritanceTest) -- Traceback (most recent call last): File "/sdcard/org.bitbucket.pyona/lib/python3.7

[issue28746] cannot set_inheritable() for a file descriptor on Android

2016-11-19 Thread Xavier de Gaye
Xavier de Gaye added the comment: It seems the code path run by Android is not tested by any of the buildbots. Patch attached. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file45547/set_inheritable.pa

[issue28746] cannot set_inheritable() for a file descriptor on Android

2016-11-19 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue28759] access to mkfifo, mknod and hard links is controled by SELinux MAC on Android

2016-11-21 Thread Xavier de Gaye
New submission from Xavier de Gaye: List of the tests that fail with PermissionError when run as a non-root user on an Android emulator (API 24) and fixed by this patch: test_posix test_shutil test_stat test_genericpath test_ntpath test_posixpath test_macpath test_eintr test_pathlib

[issue28762] configure links with lockf and F_LOCK is not declared in Android API 24

2016-11-21 Thread Xavier de Gaye
New submission from Xavier de Gaye: The patch fixes the following error: == ERROR: test_lockf (test.test_posix.PosixTester) -- Traceback (most recent call last

[issue28764] test_mailbox fails when run as a non-root user on Android API 24

2016-11-21 Thread Xavier de Gaye
New submission from Xavier de Gaye: The patch fixes the problem that on Android API 24, a non-root user is not allowed to create the hard links used by the mailbox module. Related to issue 28759. -- assignee: xdegaye components: Library (Lib) files: test_mailbox_link.patch keywords

[issue26865] Meta-issue: support of the android platform

2016-11-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: New issues raised upon testing on the Android API 24 emulator: issue #28683: bind() on a unix socket raises PermissionError on Android for a non-root user issue #28684: [asyncio] bind() on a unix socket raises PermissionError on Android for a non-root user

[issue28740] Add sys.getandroidapilevel()

2016-11-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: I agree with Marc-Andre, Windows has sys.getwindowsversion() returning system information for the Windows version, and a platform.win32_ver() returning additional version information from the Registry obtained at run time. So it is consistent to add the

<    12   13   14   15   16   17