Skip to content

[2.7] bpo-37220: Fix 2.7 test -R test_IDLE failure on Windows #13958

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

Merged
merged 1 commit into from
Jun 16, 2019

Conversation

terryjreedy
Copy link
Member

@terryjreedy terryjreedy commented Jun 11, 2019

@terryjreedy
Copy link
Member Author

The manual test is that test -R3:3 -ugui test_idle passes (on Windows) or continues to pass (where it already did).

@terryjreedy terryjreedy changed the title [2.7] Fix 2.7 test -R test_IDLE failure on Windows [2.7] bpo-37220: Fix 2.7 test -R test_IDLE failure on Windows Jun 11, 2019
@terryjreedy
Copy link
Member Author

Before merging, need to add 'Cherry-picked from ##### where ##### will be merge hash for #13957.

@@ -46,7 +46,6 @@ def test_open_and_close(self):
self.dialog.default_command = None

toplevel = Toplevel(self.root)
self.addCleanup(toplevel.destroy)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest the following:

def cleanup():
    toplevel.update()
    toplevel.destroy()
self.addCleanup(cleanup)

@terryjreedy terryjreedy merged commit 722733e into python:2.7 Jun 16, 2019
@terryjreedy terryjreedy deleted the leakfail27 branch June 16, 2019 20:36
@bedevere-app
Copy link

bedevere-app bot commented Jan 16, 2024

GH-114098 is a backport of this pull request to the 3.12 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants