--- 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() |