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

Delta Between Two Patch Sets: Lib/ctypes/test/test_bitfields.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_as_parameter.py ('k') | Lib/ctypes/test/test_callbacks.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 from ctypes import * 1 from ctypes import *
2 from ctypes.test import need_symbol 2 from ctypes.test import need_symbol
3 import unittest 3 import unittest
4 import os 4 import os
5 5
6 import ctypes 6 import ctypes
7 import _ctypes_test 7 import _ctypes_test
8 8
9 class BITS(Structure): 9 class BITS(Structure):
10 _fields_ = [("A", c_int, 1), 10 _fields_ = [("A", c_int, 1),
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 ("c", c_uint32, 4)] 282 ("c", c_uint32, 4)]
283 b = bytearray(4) 283 b = bytearray(4)
284 x = Big.from_buffer(b) 284 x = Big.from_buffer(b)
285 x.a = 0xabcdef 285 x.a = 0xabcdef
286 x.b = 1 286 x.b = 1
287 x.c = 2 287 x.c = 2
288 self.assertEqual(b, b'\xab\xcd\xef\x12') 288 self.assertEqual(b, b'\xab\xcd\xef\x12')
289 289
290 if __name__ == "__main__": 290 if __name__ == "__main__":
291 unittest.main() 291 unittest.main()
LEFTRIGHT

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