Skip to content

[3.10] gh-97527: IDLE: protect macosx Tk() call when no GUI (GH-97530) - #97532

Merged
miss-islington merged 1 commit into
python:3.10from
miss-islington:backport-9704f8d-3.10
Sep 24, 2022
Merged

miss-islington merged 1 commit into
python:3.10from
miss-islington:backport-9704f8d-3.10

Conversation

@miss-islington

@miss-islington miss-islington commented Sep 24, 2022 •

Copy link
Copy Markdown
Contributor

Only call tkinter.tk and its follow-up code in _init_tk_type when requires('gui')
does not raise. This function can be called as an unintended side-effect of
calling other idlelib code as part of tests on macOS without a GUI enabled.
(cherry picked from commit 9704f8d)

Co-authored-by: Terry Jan Reedy tjreedy@udel.edu

…97530)

Only call tkinter.tk and its follow-up code in _init_tk_type when requires('gui')
does not raise.  This function can be called as an unintended side-effect of
calling other idlelib code as part of tests on macOS without a GUI enabled.
(cherry picked from commit 9704f8d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
@miss-islington

Copy link
Copy Markdown
Contributor Author

Status check is done, and it's a success ✅.

@miss-islington
miss-islington merged commit a7a7da4 into python:3.10 Sep 24, 2022
@miss-islington
miss-islington deleted the backport-9704f8d-3.10 branch September 24, 2022 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants