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

Delta Between Two Patch Sets: Lib/ctypes/test/test_checkretval.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_cfuncs.py ('k') | Lib/ctypes/test/test_funcptr.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 3
4 from ctypes import * 4 from ctypes import *
5 from ctypes.test import need_symbol 5 from ctypes.test import need_symbol
6 6
7 class CHECKED(c_int): 7 class CHECKED(c_int):
8 def _check_retval_(value): 8 def _check_retval_(value):
9 # Receives a CHECKED instance. 9 # Receives a CHECKED instance.
10 return str(value.value) 10 return str(value.value)
(...skipping 17 matching lines...) Expand all
28 self.assertEqual(42, dll._testfunc_p_p(42)) 28 self.assertEqual(42, dll._testfunc_p_p(42))
29 29
30 @need_symbol('oledll') 30 @need_symbol('oledll')
31 def test_oledll(self): 31 def test_oledll(self):
32 self.assertRaises(OSError, 32 self.assertRaises(OSError,
33 oledll.oleaut32.CreateTypeLib2, 33 oledll.oleaut32.CreateTypeLib2,
34 0, None, None) 34 0, None, None)
35 35
36 if __name__ == "__main__": 36 if __name__ == "__main__":
37 unittest.main() 37 unittest.main()
LEFTRIGHT

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