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.
test_malloc.py
IMalloc.Realloc
1 parent cd33e95 commit 00aa48cCopy full SHA for 00aa48c
comtypes/test/test_malloc.py
@@ -40,12 +40,10 @@ def test_Realloc(self):
40
self.assertEqual(malloc.GetSize(ptr1), size1)
41
size2 = size1 - 1
42
ptr2 = malloc.Realloc(ptr1, size2)
43
- self.assertEqual(malloc.DidAlloc(ptr1), 0)
44
self.assertEqual(malloc.DidAlloc(ptr2), 1)
45
self.assertEqual(malloc.GetSize(ptr2), size2)
46
size3 = size1 + 1
47
ptr3 = malloc.Realloc(ptr2, size3)
48
- self.assertEqual(malloc.DidAlloc(ptr2), 0)
49
self.assertEqual(malloc.DidAlloc(ptr3), 1)
50
self.assertEqual(malloc.GetSize(ptr3), size3)
51
malloc.Free(ptr3)
0 commit comments