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

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

Issue 23670: Modifications to support iOS as a development platform
Patch Set: Created 3 years, 9 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_slicing.py ('k') | Lib/ctypes/test/test_unicode.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/ctypes/test/test_stringptr.py Tue Mar 01 10:26:10 2016 +0200
+++ b/Lib/ctypes/test/test_stringptr.py Wed Mar 02 00:01:35 2016 +0000
@@ -1,15 +1,16 @@
+import os
import unittest
from test import support
from ctypes import *
import _ctypes_test
-lib = CDLL(_ctypes_test.__file__)
+lib = CDLL(getattr(_ctypes_test, '__file__', os.environ['TEST_EXECUTABLE']))
class StringPtrTestCase(unittest.TestCase):
@support.refcount_test
def test__POINTER_c_char(self):
class X(Structure):
_fields_ = [("str", POINTER(c_char))]
x = X()
« no previous file with comments | « Lib/ctypes/test/test_slicing.py ('k') | Lib/ctypes/test/test_unicode.py » ('j') | no next file with comments »

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