On 03/11/2007, Guido van Rossum <[EMAIL PROTECTED]> wrote:
> In the py3k-pep3137 branch I've been working on the implementation of PEP 
> 3137.
> The work is largely done, but I'm stuck with about 20 failing tests,
> and very little time this weekend to work on these. Here's the list:
>
> test_array

One of the failures here is in

    def test_create_from_bytes(self):
        a = array.array('H', b"1234")
        self.assertEqual(len(a) * a.itemsize, 4)

Traceback (most recent call last):
  File "Lib/test/test_array.py", line 737, in test_create_from_bytes
    self.assertEqual(len(a) * a.itemsize, 4)
AssertionError: 8 != 4

However, 'H' is unsigned short, so I'd expect a.itemsize to be 2, and
so the results *should* be 8 rather than 4.

Is this just a bug in the test?

Paul.
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to