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

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

Issue 3871: cross and native build of python for mingw32 with distutils
Left Patch Set: Created 7 years, 3 months ago
Right Patch Set: Created 7 years, 2 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_as_parameter.py ('k') | Lib/ctypes/util.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 import sys, unittest 9 import sys, unittest
10 10
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 403
404 proto = CFUNCTYPE(c_int, RECT, POINT) 404 proto = CFUNCTYPE(c_int, RECT, POINT)
405 def callback(*args): 405 def callback(*args):
406 return 0 406 return 0
407 407
408 callback = proto(callback) 408 callback = proto(callback)
409 self.assertRaises(ArgumentError, lambda: callback((1, 2, 3, 4), POINT()) ) 409 self.assertRaises(ArgumentError, lambda: callback((1, 2, 3, 4), POINT()) )
410 410
411 if __name__ == '__main__': 411 if __name__ == '__main__':
412 unittest.main() 412 unittest.main()
LEFTRIGHT

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