[Python-checkins] r43092 - in python/trunk: Lib/test/leakers/test_ctypes.py Misc/build.sh
neal.norwitz
python-checkins at python.org
Fri Mar 17 05:45:39 CET 2006
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"
More information about the Python-checkins
mailing list