]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35967: Skip test with `uname -p` on Android (GH-19577)
authorChih-Hsuan Yen <yan12125@gmail.com>
Sat, 18 Apr 2020 14:20:54 +0000 (22:20 +0800)
committerGitHub <noreply@github.com>
Sat, 18 Apr 2020 14:20:54 +0000 (07:20 -0700)
commitfb940408cea1fb34fed1418832f240f886dadf57
tree8a4d8787be9ca28b53d5a9879eed08f527c9ff7a
parent7e64414f57b70dc5bc0ab19a3162a0735f9bfabf
bpo-35967: Skip test with `uname -p` on Android (GH-19577)

The uname binary on Android does not support -p [1]. Here is a sample
log:
```
0:06:03 load avg: 0.56 [254/421/8] test_platform failed -- running: test_asyncio (5 min 53 sec)
uname: Unknown option p (see "uname --help")
test test_platform failed -- Traceback (most recent call last):
  File "/data/local/tmp/lib/python3.9/test/test_platform.py", line 170, in test_uname_processor
    proc_res = subprocess.check_output(['uname', '-p'], text=True).strip()
  File "/data/local/tmp/lib/python3.9/subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/data/local/tmp/lib/python3.9/subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['uname', '-p']' returned non-zero exit status 1.
```
[1] https://android.googlesource.com/platform/external/toybox/+/refs/heads/master/toys/posix/uname.c

Automerge-Triggered-By: @jaraco
Lib/test/test_platform.py