This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_idle is interactive on macOS 11
Type: Stage: resolved
Components: IDLE Versions: Python 3.10
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: ned.deily, ronaldoussoren, terry.reedy
Priority: normal Keywords:

Created on 2020-11-07 10:40 by ronaldoussoren, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (5)
msg380501 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2020-11-07 10:40
I noticed this on a macOS 11.0.1 box: When I run "python -m test.regrtest -uall" the IDLE testsuite is run ('test_idle'), and those tests pop up windows and won't make progress until I close those windows.
msg380511 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2020-11-07 15:50
Strange.  test_idle runs fine on my Mohave, so I cannot investigate what you see.  Tests of classes that create windows and call wait_window pass _utest_=True and wait_window calls are guarded by "if not _utest:".  I believe this is always in __init__.  You could grep idlelib for _utest, find a window that stays open, and add prints to see what tkinter call is causing the hang, and if it is in the not-_utest suite.

When I run the entire suite rather than just test_idle, I instead get multiple "Python quit unexpectedly" boxes and failures in 5 other tests.
msg380529 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2020-11-07 23:50
Ned, do you have any experience of tk acting so differently on different macOS versions?
msg380530 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2020-11-08 00:02
This is the behavior seen with Tk 8.6.8 *built* on macOS 11.0 Big Sur; I'm assuming that's what Ronald was testing. We'll be updating the macOS installers to use a more recent Tk for installers built on 11.0 and this should go away. Note that Tk 8.6.8 *built* on, say, 10.9 as in the current python.org installers does not exhibit this behavior when *run* on 11.0.
msg380542 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2020-11-08 09:44
I was using a Tk 8.6.8 build on macOS 11. Looking at this more closely there are clearly other problems with that build: All windows that were created by the test were completely black except for the window chrome. 

@terry.reedy: I got those crash reporter pop-ups as well, they seem to be related to tests where the interpreter is made to crash as part of the test (for example in the concurrent.futures tests).  I hope we can find a way to suppress those pop-ups.
History
Date User Action Args
2022-04-11 14:59:37adminsetgithub: 86449
2020-11-08 09:44:40ronaldoussorensetmessages: + msg380542
2020-11-08 00:02:05ned.deilysetstatus: open -> closed
resolution: out of date
messages: + msg380530

stage: resolved
2020-11-07 23:50:36terry.reedysetnosy: + ned.deily
messages: + msg380529
2020-11-07 15:50:46terry.reedysetassignee: terry.reedy ->
messages: + msg380511
title: test_idle is interactive -> test_idle is interactive on macOS 11
2020-11-07 10:40:48ronaldoussorencreate