This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author higstar
Recipients higstar, theller
Date 2009-05-21.03:10:22
SpamBayes Score 3.7430415e-05
Marked as misclassified No
Message-id <1242875425.38.0.422322671534.issue6068@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2009-05-21 03:10:25higstarsetrecipients: + higstar, theller
2009-05-21 03:10:25higstarsetmessageid: <1242875425.38.0.422322671534.issue6068@psf.upfronthosting.co.za>
2009-05-21 03:10:23higstarlinkissue6068 messages
2009-05-21 03:10:22higstarcreate