Skip to content

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