diff options
author | Thomas Heller <theller@ctypes.org> | 2006-04-28 17:02:18 +0000 |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2006-04-28 17:02:18 +0000 |
commit | 6a907d8b8ef4ebe86730386f2c1ff788bc8b945f (patch) | |
tree | f6280f12ad290aeab5bef4ffa41a93c486ca0961 | |
parent | 0f45a078a3fc17d7e7e0f798b0e3352e10f9dcd9 (diff) | |
download | cpython-git-6a907d8b8ef4ebe86730386f2c1ff788bc8b945f.tar.gz |
Remove a duplicated test (the same test is in test_incomplete.py).
-rw-r--r-- | Lib/ctypes/test/test_pointers.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/Lib/ctypes/test/test_pointers.py b/Lib/ctypes/test/test_pointers.py index c81c6c9059..600bb75471 100644 --- a/Lib/ctypes/test/test_pointers.py +++ b/Lib/ctypes/test/test_pointers.py @@ -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__) |