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

Side by Side Diff: Lib/ctypes/test/test_as_parameter.py

Issue 23670: Modifications to support iOS as a development platform
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:
View unified diff | Download patch
« no previous file with comments | « iOS/XCode-sample/sample.xcodeproj/project.pbxproj ('k') | Lib/ctypes/test/test_bitfields.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 import os
1 import unittest 2 import unittest
2 from ctypes import * 3 from ctypes import *
3 from ctypes.test import need_symbol 4 from ctypes.test import need_symbol
4 import _ctypes_test 5 import _ctypes_test
5 6
6 dll = CDLL(_ctypes_test.__file__) 7 dll = CDLL(getattr(_ctypes_test, '__file__', os.environ['TEST_EXECUTABLE']))
7 8
8 try: 9 try:
9 CALLBACK_FUNCTYPE = WINFUNCTYPE 10 CALLBACK_FUNCTYPE = WINFUNCTYPE
10 except NameError: 11 except NameError:
11 # fake to enable this test on Linux 12 # fake to enable this test on Linux
12 CALLBACK_FUNCTYPE = CFUNCTYPE 13 CALLBACK_FUNCTYPE = CFUNCTYPE
13 14
14 class POINT(Structure): 15 class POINT(Structure):
15 _fields_ = [("x", c_int), ("y", c_int)] 16 _fields_ = [("x", c_int), ("y", c_int)]
16 17
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 return self._param 218 return self._param
218 _as_parameter_ = property(getParameter) 219 _as_parameter_ = property(getParameter)
219 220
220 class AsParamPropertyWrapperTestCase(BasicWrapTestCase): 221 class AsParamPropertyWrapperTestCase(BasicWrapTestCase):
221 wrap = AsParamPropertyWrapper 222 wrap = AsParamPropertyWrapper
222 223
223 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 224 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
224 225
225 if __name__ == '__main__': 226 if __name__ == '__main__':
226 unittest.main() 227 unittest.main()
OLDNEW
« no previous file with comments | « iOS/XCode-sample/sample.xcodeproj/project.pbxproj ('k') | Lib/ctypes/test/test_bitfields.py » ('j') | no next file with comments »

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