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

Unified Diff: Lib/ctypes/test/test_refcounts.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_prototypes.py ('k') | Lib/ctypes/test/test_returnfuncptrs.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/ctypes/test/test_refcounts.py Tue Mar 01 10:26:10 2016 +0200
+++ b/Lib/ctypes/test/test_refcounts.py Wed Mar 02 00:01:35 2016 +0000
@@ -1,18 +1,19 @@
+import os
import unittest
from test import support
import ctypes
import gc
MyCallback = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int)
OtherCallback = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int, ctypes.c_ulonglong)
import _ctypes_test
-dll = ctypes.CDLL(_ctypes_test.__file__)
+dll = ctypes.CDLL(getattr(_ctypes_test, '__file__', os.environ['TEST_EXECUTABLE']))
class RefcountTestCase(unittest.TestCase):
@support.refcount_test
def test_1(self):
from sys import getrefcount as grc
f = dll._testfunc_callback_i_if
« no previous file with comments | « Lib/ctypes/test/test_prototypes.py ('k') | Lib/ctypes/test/test_returnfuncptrs.py » ('j') | no next file with comments »

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