summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-17 04:45:38 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-17 04:45:38 (GMT)
commitddda855337362833d86deb10d1fece11b00b45dc (patch)
tree9952d762e30210fb7fed0995a5930b30f461b046 /Lib
parent8749316c08cc03615dde15885000207f1279fd0c (diff)
downloadcpython-ddda855337362833d86deb10d1fece11b00b45dc.zip
cpython-ddda855337362833d86deb10d1fece11b00b45dc.tar.gz
cpython-ddda855337362833d86deb10d1fece11b00b45dc.tar.bz2
Ignore ctypes leaks, but add a test case so we do not forget.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/leakers/test_ctypes.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/test/leakers/test_ctypes.py b/Lib/test/leakers/test_ctypes.py
new file mode 100644
index 0000000..42b1c8d
--- /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)]