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

Delta Between Two Patch Sets: Lib/ctypes/test/test_functions.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_funcptr.py ('k') | Lib/ctypes/test/test_libc.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 """ 1 """
2 Here is probably the place to write the docs, since the test-cases 2 Here is probably the place to write the docs, since the test-cases
3 show how the type behave. 3 show how the type behave.
4 4
5 Later... 5 Later...
6 """ 6 """
7 7
8 from ctypes import * 8 from ctypes import *
9 from ctypes.test import need_symbol 9 from ctypes.test import need_symbol
10 import os 10 import os
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 394
395 proto = CFUNCTYPE(c_int, RECT, POINT) 395 proto = CFUNCTYPE(c_int, RECT, POINT)
396 def callback(*args): 396 def callback(*args):
397 return 0 397 return 0
398 398
399 callback = proto(callback) 399 callback = proto(callback)
400 self.assertRaises(ArgumentError, lambda: callback((1, 2, 3, 4), POINT()) ) 400 self.assertRaises(ArgumentError, lambda: callback((1, 2, 3, 4), POINT()) )
401 401
402 if __name__ == '__main__': 402 if __name__ == '__main__':
403 unittest.main() 403 unittest.main()
LEFTRIGHT

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