From ddda855337362833d86deb10d1fece11b00b45dc Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Fri, 17 Mar 2006 04:45:38 +0000 Subject: [PATCH] Ignore ctypes leaks, but add a test case so we do not forget. --- Lib/test/leakers/test_ctypes.py | 11 +++++++++++ Misc/build.sh | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 Lib/test/leakers/test_ctypes.py diff --git a/Lib/test/leakers/test_ctypes.py b/Lib/test/leakers/test_ctypes.py new file mode 100644 index 00000000000..42b1c8d3139 --- /dev/null +++ b/Lib/test/leakers/test_ctypes.py @@ -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)] diff --git a/Misc/build.sh b/Misc/build.sh index 3c669a0d5d3..5f4aed3eec1 100755 --- a/Misc/build.sh +++ b/Misc/build.sh @@ -59,7 +59,7 @@ REFLOG="build/reflog.txt.out" # 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"