Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(114535)

Delta Between Two Patch Sets: Lib/ctypes/test/test_pointers.py

Issue 23670: Modifications to support iOS as a development platform
Left Patch Set: Created 3 years, 8 months ago
Right Patch Set: Created 3 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Lib/ctypes/test/test_pickling.py ('k') | Lib/ctypes/test/test_prototypes.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
1 import os 1 import os
2 import unittest, sys 2 import unittest, sys
3 3
4 from ctypes import * 4 from ctypes import *
5 import _ctypes_test 5 import _ctypes_test
6 6
7 ctype_types = [c_byte, c_ubyte, c_short, c_ushort, c_int, c_uint, 7 ctype_types = [c_byte, c_ubyte, c_short, c_ushort, c_int, c_uint,
8 c_long, c_ulong, c_longlong, c_ulonglong, c_double, c_float] 8 c_long, c_ulong, c_longlong, c_ulonglong, c_double, c_float]
9 python_types = [int, int, int, int, int, int, 9 python_types = [int, int, int, int, int, int,
10 int, int, int, int, float, float] 10 int, int, int, int, float, float]
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 P = POINTER(large_string) 210 P = POINTER(large_string)
211 self.assertTrue(P) 211 self.assertTrue(P)
212 212
213 # to not leak references, we must clean _pointer_type_cache 213 # to not leak references, we must clean _pointer_type_cache
214 from ctypes import _pointer_type_cache 214 from ctypes import _pointer_type_cache
215 del _pointer_type_cache[id(P)] 215 del _pointer_type_cache[id(P)]
216 216
217 217
218 if __name__ == '__main__': 218 if __name__ == '__main__':
219 unittest.main() 219 unittest.main()
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+