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

gh-112898: Fix double close dialog with warning about unsafed files #113513

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 18 commits into
base: main
Choose a base branch
Loading
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix test failure and lint warning
  • Loading branch information
ronaldoussoren committed Dec 28, 2023
commit 63087e30b7eb94853070dddd3abbc297b30d1092
3 changes: 3 additions & 0 deletions 3 Lib/idlelib/idle_test/test_macosx.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ def tearDownClass(cls):
def test_init_sets_tktype(self):
"Test that _init_tk_type sets _tk_type according to platform."
for platform, types in ('darwin', alltypes), ('other', nontypes):
orig_root = None
macosx._idle_root = self.root
self.addCleanup(lambda: setattr(macosx, "_idle_root", orig_root))
with self.subTest(platform=platform):
macosx.platform = platform
macosx._tk_type = None
Expand Down
2 changes: 1 addition & 1 deletion 2 Lib/idlelib/mainmenu.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def get_default_keydefs():
def set_default_keydefs(keydefs):
global _default_keydefs
_default_keydefs = keydefs


if __name__ == '__main__':
from unittest import main
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.