]> granicus.if.org Git - python/commitdiff
Remove a duplicated test (the same test is in test_incomplete.py).
authorThomas Heller <theller@ctypes.org>
Fri, 28 Apr 2006 17:02:18 +0000 (17:02 +0000)
committerThomas Heller <theller@ctypes.org>
Fri, 28 Apr 2006 17:02:18 +0000 (17:02 +0000)
Lib/ctypes/test/test_pointers.py

index c81c6c905926dae8f1f664a274f9d3d2893ff1e9..600bb754714d6704b76a86798b5cf469240bdb72 100644 (file)
@@ -133,27 +133,6 @@ class PointersTestCase(unittest.TestCase):
         self.failUnlessEqual(p[0], 42)
         self.failUnlessEqual(p.contents.value, 42)
 
-    def test_incomplete(self):
-        lpcell = POINTER("cell")
-        class cell(Structure):
-            _fields_ = [("value", c_int),
-                        ("next", lpcell)]
-        SetPointerType(lpcell, cell)
-
-        # Make a structure containing a pointer to itself:
-        c = cell()
-        c.value = 42
-        c.next = pointer(c)
-
-        result = []
-        for i in range(8):
-            result.append(c.value)
-            c = c.next[0]
-        self.failUnlessEqual(result, [42] * 8)
-
-        from ctypes import _pointer_type_cache
-        del _pointer_type_cache[cell]
-
     def test_charpp( self ):
         """Test that a character pointer-to-pointer is correctly passed"""
         dll = CDLL(_ctypes_test.__file__)