python / python/cpython

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

Open
#146,531 15 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

OS-mac tests topic-tkinter type-bug
Dominant language
Python
Stars
77.2k
Forks
35.9k
PR merge metrics
PR metrics pending

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read Lib/test/test_tkinter/test_misc.py around WmTest.test_wm_iconbitmap and the traceback location in Lib/tkinter/init.py:2345. Reproduce the timeout on macOS / build and test (macos-26-intel) with Tk 9.0.3, then review the linked PRs; done means the test completes within the CI timeout.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop-dev, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.