Message88149
I added the following to test_bitfields.py and got the results listed below:
def test_ulonglong_crossing_32_boundary(self):
class X(BigEndianStructure):
_fields_ = [("a", c_ulonglong, 16),
("b", c_ulonglong, 32),
("c", c_ulonglong, 16)]
x = X()
self.failUnlessEqual((x.a, x.b, x.c), (0, 0, 0))
x.a, x.b, x.c = 1, 1, 1
self.failUnlessEqual((x.a, x.b, x.c), (1, 1, 1))
======================================================================
FAIL: test_ulonglong_crossing_32_boundary (__main__.BitFieldTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "W:\ctypes\build\lib.win32-2.6\ctypes\test\test_bitfields.py",
line 98, in test_ulonglong_crossing_32_boundary
self.failUnlessEqual((x.a, x.b, x.c), (1, 1, 1))
AssertionError: (1L, 0L, 1L) != (1, 1, 1)
----------------------------------------------------------------------
Ran 16 tests in 0.015s
FAILED (failures=1) |
|
Date |
User |
Action |
Args |
2009-05-21 03:10:25 | higstar | set | recipients:
+ higstar, theller |
2009-05-21 03:10:25 | higstar | set | messageid: <1242875425.38.0.422322671534.issue6068@psf.upfronthosting.co.za> |
2009-05-21 03:10:23 | higstar | link | issue6068 messages |
2009-05-21 03:10:22 | higstar | create | |
|