Skip to content

Commit 116badf

Browse files
Move the test for deleting Pointer.contents to the PR which fixes the crash
1 parent 990c249 commit 116badf

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

Lib/test/test_ctypes/test_delattr.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import unittest
2-
from ctypes import CDLL, POINTER, Structure, c_char, c_int
2+
from ctypes import CDLL, Structure, c_char, c_int
33
from test.support import import_helper
44

55

@@ -27,11 +27,6 @@ def test_raw(self):
2727
with self.assertRaises(AttributeError):
2828
del chararray.raw
2929

30-
def test_pointer_contents(self):
31-
ptr = POINTER(c_int)(c_int(42))
32-
with self.assertRaises(TypeError):
33-
del ptr.contents
34-
3530
def test_func_pointer(self):
3631
# Deleting these attributes restores the default.
3732
dll = CDLL(import_helper.import_module('_ctypes_test').__file__)

0 commit comments

Comments
 (0)