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

Unified Diff: Lib/ctypes/test/test_bitfields.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_as_parameter.py ('k') | Lib/ctypes/test/test_callbacks.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/ctypes/test/test_bitfields.py Tue Mar 01 10:26:10 2016 +0200
+++ b/Lib/ctypes/test/test_bitfields.py Wed Mar 02 00:01:35 2016 +0000
@@ -20,17 +20,17 @@ class BITS(Structure):
("M", c_short, 1),
("N", c_short, 2),
("O", c_short, 3),
("P", c_short, 4),
("Q", c_short, 5),
("R", c_short, 6),
("S", c_short, 7)]
-func = CDLL(_ctypes_test.__file__).unpack_bitfields
+func = CDLL(getattr(_ctypes_test, '__file__', os.environ['TEST_EXECUTABLE'])).unpack_bitfields
func.argtypes = POINTER(BITS), c_char
##for n in "ABCDEFGHIMNOPQRS":
## print n, hex(getattr(BITS, n).size), getattr(BITS, n).offset
class C_Test(unittest.TestCase):
def test_ints(self):
« no previous file with comments | « Lib/ctypes/test/test_as_parameter.py ('k') | Lib/ctypes/test/test_callbacks.py » ('j') | no next file with comments »

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