New submission from higstar <adr...@higstar.com>:

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

----------
assignee: theller
components: ctypes
messages: 90549
nosy: higstar, theller
severity: normal
status: open
title: Can not set value for structure members larger than 32 bits
versions: Python 2.5, Python 2.6

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

Reply via email to