Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Move the test for deleting Pointer.contents to the PR which fixes the…
… crash
  • Loading branch information
serhiy-storchaka committed Aug 20, 2026
commit 116badf68bec25a2c5a27030311e1e52c92a441c
7 changes: 1 addition & 6 deletions Lib/test/test_ctypes/test_delattr.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import unittest
from ctypes import CDLL, POINTER, Structure, c_char, c_int
from ctypes import CDLL, Structure, c_char, c_int
from test.support import import_helper


Expand Down Expand Up @@ -27,11 +27,6 @@ def test_raw(self):
with self.assertRaises(AttributeError):
del chararray.raw

def test_pointer_contents(self):
ptr = POINTER(c_int)(c_int(42))
with self.assertRaises(TypeError):
del ptr.contents

def test_func_pointer(self):
# Deleting these attributes restores the default.
dll = CDLL(import_helper.import_module('_ctypes_test').__file__)
Expand Down
Loading