Skip to content

bpo-31130: Fix test_idle reference leaks#3014

Closed
vstinner wants to merge 1 commit into
python:masterfrom
vstinner:tracers_clear
Closed

bpo-31130: Fix test_idle reference leaks#3014
vstinner wants to merge 1 commit into
python:masterfrom
vstinner:tracers_clear

Conversation

@vstinner

@vstinner vstinner commented Aug 7, 2017

Copy link
Copy Markdown
Member

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

mlouielu commented Aug 7, 2017

Copy link
Copy Markdown
Contributor

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

@terryjreedy

Copy link
Copy Markdown
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