[Python-checkins] r43092 - in python/trunk: Lib/test/leakers/test_ctypes.py Misc/build.sh

Jim Jewett jimjjewett at gmail.com
Fri Mar 17 18:34:33 CET 2006


Should some of the leaky excludes be removed from this list?


Looking at recent leak results, there were no leaks for

capi
cfgparser
charmapcodec
filecmp
threadedimport
threading

I assume that the threading tests really are sporadic, but it would
be good to know if changes to capi add a new leak.

-jJ

On 3/16/06, neal.norwitz <python-checkins at python.org> wrote:
> Author: neal.norwitz
> Date: Fri Mar 17 05:45:38 2006
> New Revision: 43092
>
> Added:
>    python/trunk/Lib/test/leakers/test_ctypes.py   (contents, props changed)
> Modified:
>    python/trunk/Misc/build.sh
> Log:
> Ignore ctypes leaks, but add a test case so we do not forget.
>
> Added: python/trunk/Lib/test/leakers/test_ctypes.py
> ==============================================================================
> --- (empty file)
> +++ python/trunk/Lib/test/leakers/test_ctypes.py        Fri Mar 17 05:45:38 2006
> @@ -0,0 +1,11 @@
> +
> +# Taken from Lib/ctypes/test/test_keeprefs.py
> +# When this leak is fixed, remember to remove from Misc/build.sh LEAKY_TESTS.
> +
> +from ctypes import Structure, c_int
> +
> +def leak():
> +    class POINT(Structure):
> +        _fields_ = [("x", c_int)]
> +    class RECT(Structure):
> +        _fields_ = [("ul", POINT)]
>
> Modified: python/trunk/Misc/build.sh
> ==============================================================================
> --- python/trunk/Misc/build.sh  (original)
> +++ python/trunk/Misc/build.sh  Fri Mar 17 05:45:38 2006
> @@ -59,7 +59,7 @@
>  # test_generators really leaks.  Since test_generators probably won't
>  # be fixed real soon, disable warning about it for now.
>  # The entire leak report will be mailed if any test not in this list leaks.
> -LEAKY_TESTS="test_(capi|cfgparser|charmapcodec|cmd_line|compiler|filecmp|generators|quopri|socket|threaded_import|threadedtempfile|threading|threading_local|urllib2)"
> +LEAKY_TESTS="test_(capi|cfgparser|charmapcodec|cmd_line|compiler|ctypes|filecmp|generators|quopri|socket|threaded_import|threadedtempfile|threading|threading_local|urllib2)"
>
>  # Change this flag to "yes" for old releases to just update/build the docs.
>  BUILD_DISABLED="no"
> _______________________________________________
> Python-checkins mailing list
> Python-checkins at python.org
> http://mail.python.org/mailman/listinfo/python-checkins
>


More information about the Python-checkins mailing list