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

Delta Between Two Patch Sets: Lib/ctypes/test/test_stringptr.py

Issue 23670: Modifications to support iOS as a development platform
Left Patch Set: Created 3 years, 8 months ago
Right Patch Set: Created 3 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Lib/ctypes/test/test_slicing.py ('k') | Lib/ctypes/test/test_unicode.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
1 import os 1 import os
2 import unittest 2 import unittest
3 from test import support 3 from test import support
4 from ctypes import * 4 from ctypes import *
5 5
6 import _ctypes_test 6 import _ctypes_test
7 7
8 lib = CDLL(getattr(_ctypes_test, '__file__', os.environ['TEST_EXECUTABLE'])) 8 lib = CDLL(getattr(_ctypes_test, '__file__', os.environ['TEST_EXECUTABLE']))
9 9
10 class StringPtrTestCase(unittest.TestCase): 10 class StringPtrTestCase(unittest.TestCase):
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 buf = c_buffer(b"abcdef") 69 buf = c_buffer(b"abcdef")
70 r = strchr(buf, b"c") 70 r = strchr(buf, b"c")
71 x = r[0], r[1], r[2], r[3], r[4] 71 x = r[0], r[1], r[2], r[3], r[4]
72 self.assertEqual(x, (b"c", b"d", b"e", b"f", b"\000")) 72 self.assertEqual(x, (b"c", b"d", b"e", b"f", b"\000"))
73 del buf 73 del buf
74 # x1 will NOT be the same as x, usually: 74 # x1 will NOT be the same as x, usually:
75 x1 = r[0], r[1], r[2], r[3], r[4] 75 x1 = r[0], r[1], r[2], r[3], r[4]
76 76
77 if __name__ == '__main__': 77 if __name__ == '__main__':
78 unittest.main() 78 unittest.main()
LEFTRIGHT

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