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-07-16.01:11:56
SpamBayes Score 3.1905113e-06
Marked as misclassified No
Message-id <1247706719.26.0.735618414968.issue6493@psf.upfronthosting.co.za>
In-reply-to
Content
Added a test to test_bitfields.py:
    def test_uint32(self):
        class X(Structure):
            _fields_ = [("a", c_uint32, 32)]

        x = X()
        x.a = 10
        self.failUnlessEqual(x.a, 10)

Run in Python 2.5.2 and 2.6.2:
======================================================================
FAIL: test_uint32 (__main__.BitFieldTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_bitfields.py", line 73, in test_uint32
    self.failUnlessEqual(x.a, 10)
AssertionError: 0L != 10
History
Date User Action Args
2009-07-16 01:11:59higstarsetrecipients: + higstar, theller
2009-07-16 01:11:59higstarsetmessageid: <1247706719.26.0.735618414968.issue6493@psf.upfronthosting.co.za>
2009-07-16 01:11:57higstarlinkissue6493 messages
2009-07-16 01:11:56higstarcreate