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

Unified Diff: Lib/ctypes/test/test_functions.py

Issue 23670: Modifications to support iOS as a development platform
Patch Set: Created 3 years, 8 months ago
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/ctypes/test/test_funcptr.py ('k') | Lib/ctypes/test/test_libc.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/ctypes/test/test_functions.py Tue Mar 01 10:26:10 2016 +0200
+++ b/Lib/ctypes/test/test_functions.py Wed Mar 02 00:01:35 2016 +0000
@@ -2,26 +2,27 @@
Here is probably the place to write the docs, since the test-cases
show how the type behave.
Later...
"""
from ctypes import *
from ctypes.test import need_symbol
+import os
import sys, unittest
try:
WINFUNCTYPE
except NameError:
# fake to enable this test on Linux
WINFUNCTYPE = CFUNCTYPE
import _ctypes_test
-dll = CDLL(_ctypes_test.__file__)
+dll = CDLL(getattr(_ctypes_test, '__file__', os.environ['TEST_EXECUTABLE']))
if sys.platform == "win32":
windll = WinDLL(_ctypes_test.__file__)
class POINT(Structure):
_fields_ = [("x", c_int), ("y", c_int)]
class RECT(Structure):
_fields_ = [("left", c_int), ("top", c_int),
("right", c_int), ("bottom", c_int)]
« no previous file with comments | « Lib/ctypes/test/test_funcptr.py ('k') | Lib/ctypes/test/test_libc.py » ('j') | no next file with comments »

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