New submission from Terry J. Reedy <tjre...@udel.edu>:

Ned, have you seen or heard anything about tkinter/tk8.6.11 freezing on macOS?  
It is happening in many places.

On my MacBook, python3.9 -m test -ugui -v test_idle runs OK in about 10 
seconds.  With installed python3.10.0b2, it runs test_colorizer 
ColorCongigTest, ColorDelagatorInstantionTest, and 
ColorDelagatorTest.test_LoadTagDefs.  It hangs on test_case_soft_keyword, which 
is new in 3.10 for the new match statement soft keywords.  With added skips, it 
hangs on
test_def_statement
test_incremental_editing
test_match_soft_keyword
test_recolorize_main
test_removecolors
and then test_colorizer passes.

At this point, I thought the problem was the fancy new test methods and 
helpers.  But running test_idle again, 
test_outwin.OutputWindowTest.test_goto_file_line (line 105) hangs displaying a 
blank window.  The test writes something at 115 which did not appear.  However, 
debug prints indicate that it is the 2nd write, about 121, that does not 
return.  The write method just inserts into the text widget.  Nothing 
apparently fancy.  The failure is deterministic (over 10 times).  In 3.9.5, the 
same test and all of test_idle ran OK 3 times.

Adding .update() and .update_idletasks() before the write did nothing.  Making 
this test method fail before the write, let the test continue until it hung in 
test_write.

The problem seems to be in the test environment.  Tests of match, case, and _ 
in Shell looked corrected.  Grepping idlelib for 'tkinter' returned 222 hits 
and multiple gotos for different files and lines within a file worked normally.

----------
messages: 395239
nosy: ned.deily, taleinat, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE: Colorizer test hangs on macOS
versions: Python 3.10, Python 3.11

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue44330>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to