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

Delta Between Two Patch Sets: Lib/ctypes/test/test_refcounts.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_prototypes.py ('k') | Lib/ctypes/test/test_returnfuncptrs.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 2 import unittest
3 from test import support 3 from test import support
4 import ctypes 4 import ctypes
5 import gc 5 import gc
6 6
7 MyCallback = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int) 7 MyCallback = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int)
8 OtherCallback = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int, ctypes.c_ulonglong) 8 OtherCallback = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int, ctypes.c_ulonglong)
9 9
10 import _ctypes_test 10 import _ctypes_test
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 def func(a, b): 93 def func(a, b):
94 return a * b * 2 94 return a * b * 2
95 f = proto(func) 95 f = proto(func)
96 96
97 a = sys.getrefcount(ctypes.c_int) 97 a = sys.getrefcount(ctypes.c_int)
98 f(1, 2) 98 f(1, 2)
99 self.assertEqual(sys.getrefcount(ctypes.c_int), a) 99 self.assertEqual(sys.getrefcount(ctypes.c_int), a)
100 100
101 if __name__ == '__main__': 101 if __name__ == '__main__':
102 unittest.main() 102 unittest.main()
LEFTRIGHT

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