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

Delta Between Two Patch Sets: Lib/ctypes/test/test_callbacks.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_bitfields.py ('k') | Lib/ctypes/test/test_cfuncs.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 ctypes import * 3 from ctypes import *
4 from ctypes.test import need_symbol 4 from ctypes.test import need_symbol
5 import _ctypes_test 5 import _ctypes_test
6 6
7 class Callbacks(unittest.TestCase): 7 class Callbacks(unittest.TestCase):
8 functype = CFUNCTYPE 8 functype = CFUNCTYPE
9 9
10 ## def tearDown(self): 10 ## def tearDown(self):
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 239
240 result = func(1.1, 2.2, 3.3, 4.4, 5.5, CALLBACK(callback)) 240 result = func(1.1, 2.2, 3.3, 4.4, 5.5, CALLBACK(callback))
241 self.assertEqual(result, 241 self.assertEqual(result,
242 callback(1.1*1.1, 2.2*2.2, 3.3*3.3, 4.4*4.4, 5.5*5.5)) 242 callback(1.1*1.1, 2.2*2.2, 3.3*3.3, 4.4*4.4, 5.5*5.5))
243 243
244 244
245 ################################################################ 245 ################################################################
246 246
247 if __name__ == '__main__': 247 if __name__ == '__main__':
248 unittest.main() 248 unittest.main()
LEFTRIGHT

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