8000 bpo-31130: Fix test_idle reference leaks by vstinner · Pull Request #3014 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-31130: Fix test_idle reference leaks #3014

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

Closed
wants to merge 1 commit into from
Closed

bpo-31130: Fix test_idle reference leaks #3014

wants to merge 1 commit into from

Conversation

vstinner
Copy link
Member
@vstinner vstinner commented Aug 7, 2017

test_configdialog:

  • VarTraceTest.setUp() now calls tracers.detach() before calling
    tracers.clear().
  • tearDownModule() now calls tracers.clear() after calling
    tracers.detach().

https://bugs.python.org/issue31130

test_configdialog:

* VarTraceTest.setUp() now calls tracers.detach() before calling
  tracers.clear().
* tearDownModule() now calls tracers.clear() after calling
  tracers.detach().
@mlouielu
Copy link
Contributor
mlouielu commented Aug 7, 2017

LGTM. But I think the VarTraceTest use the wrong tracers, it should create its tracers, not using configdialog.tracers.

@terryjreedy
Copy link
Member

I somehow did not notice this PR when I read the issue. I independently noticed that VarTraceTest also leaked and concluded the same thing Louie did -- better to create a separate instance and delete it. The result is a merge conflict between the two patches, so I am closing this in favor of #3016, which revises and improves VarTraceTest.

@terryjreedy terryjreedy closed this Aug 7, 2017
@vstinner vstinner deleted the tracers_clear branch August 7, 2017 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0