# 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: ```python ====================================================================== 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: ```python ====================================================================== 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 <!-- gh-linked-prs --> ### Linked PRs * gh-154368 * gh-154370 * gh-157063 * gh-157064 * gh-157065 <!-- /gh-linked-prs -->
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…