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 theller
Recipients gvanrossum, theller
Date 2007-12-12.20:11:38
SpamBayes Score 0.0071279053
Marked as misclassified No
Message-id <47604079.4010607@ctypes.org>
In-reply-to <1197481604.47.0.924805428007.issue1597@psf.upfronthosting.co.za>
Content
Guido van Rossum schrieb:
> Thanks!  (I agree with Eric Smith that this is mysterious for the
> innocent bystander.)

I have added a comment.

> Also, what about the -33/+33 leaks?  I suppose these are harmless, but
> it would be better if the test reliably didn't report leaks...

I am using my own definition of leaking:  a test is leaking if references
grow without bounds ;-).

Ok, I found that the test in charge is Lib/ctypes/test/test_loading.py,
LoaderTest.test_find.  This test uses the ctypes.util.find_library function,
which contains several calls to os.popen(...).read().

The minimal code reporting the -33/+33 leaks that I found is simply this:

   os.popen('ls').read()

Is there a problem in "os.popen(...)", or do I something wrong here?
History
Date User Action Args
2007-12-12 20:11:39thellersetspambayes_score: 0.00712791 -> 0.0071279053
recipients: + theller, gvanrossum
2007-12-12 20:11:39thellerlinkissue1597 messages
2007-12-12 20:11:38thellercreate