This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nadeem.vawda
Recipients lukasz.langa, nadeem.vawda, vstinner
Date 2011-01-06.01:17:09
SpamBayes Score 5.3126105e-06
Marked as misclassified No
Message-id <1294276633.48.0.488180071689.issue10512@psf.upfronthosting.co.za>
In-reply-to
Content
Awesome. That just leaves test_urllibnet, test_urllib2net, and test_cgi. I'm hoping to post patches for the first two tomorrow.

About test_cgi, I've fiddled around with it a bit more. The leak manifests itself with any set of tests including test_cgi and test___all__, for example:

  ☿ ./python -Wd -E -bb -m test.regrtest test___all__ test_cgi
  [1/2] test___all__
  [2/2] test_cgi
  All 2 tests OK.
  sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name='/dev/null' encoding='UTF-8'>

... but not with any other 2-test combination. This led me to think it was something specific to test___all__, but it does also come up when running all tests *except* test___all__.

I'm guessing there's something somewhere that's causing the cgi module to be garbage-collected between the tests finishing and the process terminating. Without some familiarity with unittest's internals, I can't say anything more, though.
History
Date User Action Args
2011-01-06 01:17:13nadeem.vawdasetrecipients: + nadeem.vawda, vstinner, lukasz.langa
2011-01-06 01:17:13nadeem.vawdasetmessageid: <1294276633.48.0.488180071689.issue10512@psf.upfronthosting.co.za>
2011-01-06 01:17:09nadeem.vawdalinkissue10512 messages
2011-01-06 01:17:09nadeem.vawdacreate