]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35967: Baseline values for uname -p (GH-12824)
authorJason R. Coombs <jaraco@jaraco.com>
Wed, 15 Apr 2020 18:32:01 +0000 (14:32 -0400)
committerGitHub <noreply@github.com>
Wed, 15 Apr 2020 18:32:01 +0000 (14:32 -0400)
commit4b4e90a51848578dc06341777a929a0be4f4757f
treec126c0fb99d511937ffb8624bd8d2e13fa53591c
parent9a4b38f66b3e674db94e07980e1cacb39e388c73
bpo-35967: Baseline values for uname -p (GH-12824)

* Add a test intended to capture the expected values from 'uname -p'

* Instead of trying to keep track of all of the possible outputs on different systems (probably a fool's errand), simply assert that except for the known platform variance, uname().processor matches the output of 'uname -p'

* Use a skipIf directive

* Use contextlib.suppress to suppress the error. Inline strip call.
Lib/test/test_platform.py