higstar <adr...@higstar.com> added the comment:

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)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue6068>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to