New submission from Xavier de Gaye:

This is yet another idiosyncrasy of Android, the /sbin directory is in the 
$PATH of the adb shell used for running the tests on the emulator or on a 
device connected with usb to the build platform, and /sbin is readable and 
searchable only by root. For a plain user, the loop over exec_array[] in 
child_exec() at _posixsubprocess.c sets saved_errno to EACCES after failing to 
exec /sbin/some_non_existent_program.

The patch fixes these failing tests on Android API 24: test_dtrace test_shutil 
test_subprocess.

----------
components: Tests
files: catch_PermissionError.patch
keywords: patch
messages: 280551
nosy: xdegaye
priority: normal
severity: normal
stage: patch review
status: open
title: catch also PermissionError in tests when spawning a non existent program
type: behavior
versions: Python 3.6, Python 3.7
Added file: http://bugs.python.org/file45435/catch_PermissionError.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28662>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to