+++ /dev/null
-\r
-# Taken from Lib/ctypes/test/test_keeprefs.py, PointerToStructure.test().\r
-# When this leak is fixed, remember to remove from Misc/build.sh LEAKY_TESTS.\r
-\r
-from ctypes import Structure, c_int, POINTER\r
-import gc\r
-\r
-def leak_inner():\r
- class POINT(Structure):\r
- _fields_ = [("x", c_int)]\r
- class RECT(Structure):\r
- _fields_ = [("a", POINTER(POINT))]\r
-\r
-def leak():\r
- leak_inner()\r
- gc.collect()\r