Running the tests over up to date build on Ubuntu 16.04 64-bit.
./python -m test.test_ttk_guionly -v
Sometimes this runs without failure and sometimes it 'hangs' and then produces failures. When it hangs, my computer freezes completely. As you can see, it can run for 8 minutes.
It seems to hang most often on test_idenify in EntryTest.
These failures are all fixed by the test hardening in gh-69134 (#152499, backported to 3.13/3.14/3.15).
The named tests no longer assert on unmapped geometry or block on wait_visibility(); they now wait for the window manager to map the widget (or skip cleanly):
EntryTest.test_identify ('' != 'textarea') and ScaleTest.test_get/test_set now guard the geometry assertions with wait_until_mapped().
The LabeledScale hang at wait_visibility() (bpo-40722) is gone — that test uses require_mapped() instead, which never blocks indefinitely.
Activity
csabella commented on Jun 25, 2017
Running the tests over up to date build on Ubuntu 16.04 64-bit.
./python -m test.test_ttk_guionly -v
Sometimes this runs without failure and sometimes it 'hangs' and then produces failures. When it hangs, my computer freezes completely. As you can see, it can run for 8 minutes.
It seems to hang most often on test_idenify in EntryTest.
Here's one set of failures:
======================================================================
FAIL: test_identify (tkinter.test.test_ttk.test_widgets.EntryTest)
----------------------------------------------------------------------
======================================================================
FAIL: test_get (tkinter.test.test_ttk.test_widgets.ScaleTest)
----------------------------------------------------------------------
======================================================================
FAIL: test_set (tkinter.test.test_ttk.test_widgets.ScaleTest)
----------------------------------------------------------------------
======================================================================
FAIL: test_identify (tkinter.test.test_ttk.test_widgets.WidgetTest)
----------------------------------------------------------------------
Ran 272 tests in 491.572s
FAILED (failures=4)
Here's another set from a different run:
======================================================================
FAIL: test_get (tkinter.test.test_ttk.test_widgets.ScaleTest)
----------------------------------------------------------------------
======================================================================
FAIL: test_set (tkinter.test.test_ttk.test_widgets.ScaleTest)
----------------------------------------------------------------------
======================================================================
FAIL: test_identify (tkinter.test.test_ttk.test_widgets.WidgetTest)
----------------------------------------------------------------------
======================================================================
FAIL: test_horizontal_range (tkinter.test.test_ttk.test_extensions.LabeledScaleTest)
----------------------------------------------------------------------
Ran 272 tests in 353.180s
FAILED (failures=4)
terryjreedy commented on Jun 26, 2017
My Win 10 machine consistently runs 272 tests OK in 3 seconds.
terryjreedy commented on May 23, 2020
bpo-40722 is about a hang, at least once, on line 147
DahlitzFlorian commented on May 23, 2020
I'm on Ubuntu 20.04 64-bit, ran the command provided and got
Ran 303 tests in 18.900s
OK
I was running against the master branch.
serhiy-storchaka commented on Jul 5, 2026
These failures are all fixed by the test hardening in gh-69134 (#152499, backported to 3.13/3.14/3.15).
The named tests no longer assert on unmapped geometry or block on wait_visibility(); they now wait for the window manager to map the widget (or skip cleanly):
Closing as completed.