[New-bugs-announce] [issue28662] catch also PermissionError in tests when spawning a non existent program

Xavier de Gaye report at bugs.python.org
Thu Nov 10 18:17:51 EST 2016


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 <report at bugs.python.org>
<http://bugs.python.org/issue28662>
_______________________________________


More information about the New-bugs-announce mailing list