test_buffer.test_array_alignment() fails on Python 3.15.0~a6 when using mimalloc
未关闭
还没有人认领这个 Issue。
3.15
3.16
tests
type-bug
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 35.9k
- PR 合并指标
- PR 指标待抓取
描述
Bug report
Bug description:
When running the test suite for openSUSE/Linux on 32bit architectures (i586 and armv7l), I get this test failing
[ 3014s] ======================================================================
[ 3014s] FAIL: test_array_alignment (test.test_buffer.TestBufferProtocol.test_array_alignment)
[ 3014s] ----------------------------------------------------------------------
[ 3014s] Traceback (most recent call last):
[ 3014s] File "/home/abuild/rpmbuild/BUILD/python315-nogil-3.15.0_a6-build/Python-3.15.0a6/Lib/test/test_buffer.py", line 4480, in test_array_alignment
[ 3014s] self.assertEqual(
[ 3014s] ~~~~~~~~~~~~~~~~^
[ 3014s] [_testcapi.buffer_pointer_as_int(case) % align for case in cases],
[ 3014s] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ 3014s] [0] * len(cases),
[ 3014s] ^^^^^^^^^^^^^^^^^
[ 3014s] )
[ 3014s] ^
[ 3014s] AssertionError: Lists differ: [0, 4, 0, 0, 0, 0, 0, 0, 0, 0] != [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
[ 3014s]
[ 3014s] First differing element 1:
[ 3014s] 4
[ 3014s] 0
[ 3014s]
[ 3014s] - [0, 4, 0, 0, 0, 0, 0, 0, 0, 0]
[ 3014s] ? ---
[ 3014s]
[ 3014s] + [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
[ 3014s] ? +++
[ 3014s]
[ 3014s]
[ 3014s] ----------------------------------------------------------------------
[ 3014s] Ran 97 tests in 11.932s
[ 3014s]
[ 3014s] FAILED (failures=1, skipped=2)
Complete build log with all packages used and steps taken to reproduce.
It seems that _testcapi module has been correctly build.
CPython versions tested on:
3.15
Operating systems tested on:
Linux
Linked PRs
- gh-145026
- gh-157530
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
Start with Lib/test/test_buffer.py at test_array_alignment around line 4480 and the _testcapi.buffer_pointer_as_int calls. Reproduce the failure on 32-bit Linux with mimalloc using the complete build log and compare the affected alignment case. Done means the test passes without weakening its alignment assertion; linked PRs gh-145026 and gh-157530 should be reviewed first.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- testing-qa
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100