Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
miss-islington merged 1 commit into
python:3.11python/cpython:3.11from
miss-islington:backport-9704f8d-3.11miss-islington/cpython:backport-9704f8d-3.11Copy head branch name to clipboard
Sep 24, 2022
Merged

[3.11] gh-97527: IDLE: protect macosx Tk() call when no GUI (GH-97530)#97531
miss-islington merged 1 commit into
python:3.11python/cpython:3.11from
miss-islington:backport-9704f8d-3.11miss-islington/cpython:backport-9704f8d-3.11Copy head branch name to clipboard

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 fe8db63 into python:3.11 Sep 24, 2022
@miss-islington miss-islington deleted the backport-9704f8d-3.11 branch September 24, 2022 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.