python / python/cpython

test_wm_iconbitmap() timeout after 10 min on "macOS / build and test (macos-26-intel)" CI

未关闭
#146,531 15 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

OS-mac tests topic-tkinter type-bug
主要语言
Python
星标
77.2k
派生
35.9k
PR 合并指标
PR 指标待抓取

描述

Example of failure: https://github.com/python/cpython/actions/runs/23552862012/job/68571481619?pr=146357

(...)
test_wm_attribute (test.test_tkinter.test_misc.WmTest.test_wm_attribute) ... ok
test_wm_iconbitmap (test.test_tkinter.test_misc.WmTest.test_wm_iconbitmap) ... Timeout (0:10:00)!
Thread 0x00007ff85c48cc00 (most recent call first):
  File "/Users/runner/work/cpython/cpython/Lib/tkinter/__init__.py", line 2345 in wm_iconbitmap
  File "/Users/runner/work/cpython/cpython/Lib/test/test_tkinter/test_misc.py", line 582 in test_wm_iconbitmap
  File "/Users/runner/work/cpython/cpython/Lib/unittest/case.py", line 613 in _callTestMethod
  File "/Users/runner/work/cpython/cpython/Lib/unittest/case.py", line 667 in run
(...)

test.pythoninfo:

tkinter.TCL_VERSION: 9.0
tkinter.TK_VERSION: 9.0
tkinter.info_patchlevel: 9.0.3

The test_wm_iconbitmap() test was added by commit 58e9f95c4aa970db32a94b9152b51ede22f823bd.

Linked PRs
  • gh-148032
  • gh-153188
  • gh-153189
  • gh-153190
  • gh-153191
  • gh-153348
  • gh-153450
  • gh-153451
  • gh-153452
  • gh-153453

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

阅读 Lib/test/test_tkinter/test_misc.py 中 WmTest.test_wm_iconbitmap 附近的内容,以及 Lib/tkinter/init.py:2345 中 traceback 的位置。使用 Tk 9.0.3 在 macOS / build and test (macos-26-intel) 上重现 timeout,然后审查链接的 PR;完成的标准是测试在 CI timeout 内完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
desktop-dev, testing
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。