We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d85624 commit aedc4b2Copy full SHA for aedc4b2
Lib/test/test_ctypes/test_pointers.py
@@ -241,6 +241,10 @@ def test_pointer_not_ctypes_type(self):
241
with self.assertRaisesRegex(TypeError, "must have storage info"):
242
POINTER(int)
243
244
+ def test_pointer_set_python_type(self):
245
+ p1 = POINTER(c_int)
246
+ with self.assertRaisesRegex(TypeError, "must have storage info"):
247
+ p1.set_type(int)
248
249
if __name__ == '__main__':
250
unittest.main()
0 commit comments