Repository navigation
Tkinter: test_boundary_values_accepted fails #154357
Copy link
Copy link
Closed
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-tkintertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
test.test_tkinter.test_simpledialog.QueryDialogTest.test_boundary_values_accepted is failing, for example in this run https://github.com/python/cpython/actions/runs/29705949750/job/88242885156?pr=154202:
======================================================================
FAIL: test_boundary_values_accepted (test.test_tkinter.test_simpledialog.QueryDialogTest.test_boundary_values_accepted)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\a\cpython\cpython\Lib\test\test_tkinter\test_simpledialog.py", line 246, in test_boundary_values_accepted
self.assertEqual(d.result, 10)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
AssertionError: None != 10
----------------------------------------------------------------------I can also reproduce the failure locally on the main branch:
======================================================================
FAIL: test_boundary_values_accepted (test.test_tkinter.test_simpledialog.QueryDialogTest.test_boundary_values_accepted)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/a/cpython/Lib/test/test_tkinter/test_simpledialog.py", line 536, in test_boundary_values_accepted
self.assertEqual(d.result, 20)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
AssertionError: None != 20
======================================================================CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux, Windows
Linked PRs
- gh-154357: Fix race condition in test_simpledialog by explicitly setting focus to entry #154368
- gh-154357: Fix tkinter, ttk and IDLE tests depending on the window manager #154370
- [3.15] gh-154357: Fix tkinter, ttk and IDLE tests depending on the window manager (GH-154370) #157063
- [3.14] gh-154357: Fix tkinter, ttk and IDLE tests depending on the window manager (GH-154370) #157064
- [3.13] gh-154357: Fix tkinter, ttk and IDLE tests depending on the window manager (GH-154370) #157065
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-tkintertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Activity
IvyXu420 commentedon Jul 21, 2026
This test was added in #151856.
Cc @serhiy-storchaka
test: trigger CI on fork for python#154357
pythongh-154357: Fix race condition in test_simpledialog by explicitl…
pythongh-154357: Fix more flaky tkinter and ttk tests
pythongh-154357: Fix more flaky tkinter focus and stacking tests
Merge branch 'main' into pythongh-154357-dialog-focus-race
pythongh-154357: Tolerate additional focus events in test_focus
pythongh-154357: Fix flaky wait_until_mapped(full_size=True)
pythongh-154357: Take the focus right before generating a key event
gh-154357: Fix tkinter, ttk and IDLE tests depending on the window ma…
[3.13] gh-154357: Fix tkinter, ttk and IDLE tests depending on the wi…
[3.14] gh-154357: Fix tkinter, ttk and IDLE tests depending on the wi…
pythongh-154357: Fix tkinter, ttk and IDLE tests depending on the win…
[3.15] gh-154357: Fix tkinter, ttk and IDLE tests depending on the wi…