Title: test_build_details.test_platform fails for 32-bit builds on a 64-bit kernel · Issue #161870 · python/cpython · GitHub
Open Graph Title: test_build_details.test_platform fails for 32-bit builds on a 64-bit kernel · Issue #161870 · python/cpython
X Title: test_build_details.test_platform fails for 32-bit builds on a 64-bit kernel · Issue #161870 · python/cpython
Description: Bug report Bug description: test_build_details.test_platform compares the platform key of build-details.json with sysconfig.get_platform(). On Linux the machine part of both comes from os.uname(), once on the build machine and once on th...
Open Graph Description: Bug report Bug description: test_build_details.test_platform compares the platform key of build-details.json with sysconfig.get_platform(). On Linux the machine part of both comes from os.uname(), ...
X Description: Bug report Bug description: test_build_details.test_platform compares the platform key of build-details.json with sysconfig.get_platform(). On Linux the machine part of both comes from os.uname(), ...
Opengraph URL: https://github.com/python/cpython/issues/161870
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test_build_details.test_platform fails for 32-bit builds on a 64-bit kernel","articleBody":"# Bug report\n\n### Bug description:\n\n`test_build_details.test_platform` compares the `platform` key of build-details.json with `sysconfig.get_platform()`. On Linux the machine part of both comes from `os.uname()`, once on the build machine and once on the machine running the tests, and for 32-bit builds the two often differ.\n\nUbuntu builds its armhf packages on `armv7l` and runs the autopkgtests on arm64 machines, where 32-bit processes see `armv8l`. Both 3.14 and 3.15 fail there ([3.15 log](https://autopkgtest.ubuntu.com/results/autopkgtest-tenacious/tenacious/armhf/p/python3.15/20261109_212337_dfd2b@/log.gz), [3.14 log](https://autopkgtest.ubuntu.com/results/autopkgtest-stonking/stonking/armhf/p/python3.14/20261105_081011_e60a4@/log.gz)):\n\n```\nFAIL: test_platform (test.test_build_details.CPythonBuildDetailsTests.test_platform)\nAssertionError: 'linux-armv7l' != 'linux-armv8l'\n```\n\nI see the same with:\n\n- Debian's i386 python3.14/3.15 on an x86_64 kernel: `'linux-i686' != 'linux-x86_64'`\n- Debian's armhf packages in a container on arm64 without `linux32`: `'linux-armv8l' != 'linux-aarch64'`\n- a 32-bit ARM cross build of main run under qemu: `'linux-arm' != 'linux-armv7l'` (the cross build takes `arm` from the host triplet)\n\nThe value in build-details.json describes the build, so I don't think the file is wrong. The test just can't expect the kernel it runs on to report the same machine for a 32-bit build.\n\n### CPython versions tested on:\n\n3.14, 3.15, CPython main branch\n\n### Operating systems tested on:\n\nLinux\n\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-161879\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/aozmekik","@type":"Person","name":"aozmekik"},"datePublished":"2026-11-12T12:37:54Z","url":"https://github.com/python/cpython/issues/161870"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:150bc48f-b4ce-8340-cf34-819b0adf82c8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D1BC:157C65:309E68C:40DD0FA:6B01EC2E |
| html-safe-nonce | b928d8c53ab19da408a1bb0d446051b410674b69348e5baed5211da1c3890b16 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMUJDOjE1N0M2NTozMDlFNjhDOjQwREQwRkE6NkIwMUVDMkUiLCJ2aXNpdG9yX2lkIjoiODAyNDc0NTMyMTczNTI1MzAzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 52232580271c418ee7e0e79fbffcd3e339f3ccf51f82b9ccd525a93febced0a3 |
| hovercard-subject-tag | issue:6349950761 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/161870/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d29dab745577f684966017af5adb6955535e31e5fbc9b71619ffae711c9c56a1/python/cpython/issues/161870 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d29dab745577f684966017af5adb6955535e31e5fbc9b71619ffae711c9c56a1/python/cpython/issues/161870 |
| og:image:alt | Bug report Bug description: test_build_details.test_platform compares the platform key of build-details.json with sysconfig.get_platform(). On Linux the machine part of both comes from os.uname(), ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aozmekik |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width