[issue19633] test_wave: failures on PPC64 buildbot
Serhiy Storchaka
report at bugs.python.org
Mon Nov 18 09:15:57 CET 2013
Serhiy Storchaka added the comment:
array's constructor interprets its second memoryview argument as an iterable of integers.
>>> import array
>>> array.array('h', b'abcd')
array('h', [25185, 25699])
>>> array.array('h', memoryview(b'abcd'))
array('h', [97, 98, 99, 100])
array.frombytes() always interpret its argument as bytes-like object.
>>> a = array.array('h')
>>> a.frombytes(memoryview(b'abcd'))
>>> a
array('h', [25185, 25699])
First patch fixes only a half of the issue. test_unseekable_incompleted_write() still failed because array.fromfile() fails read incomplete data. Second patch also adds unittest.expectedFailure decorators for these tests.
----------
Added file: http://bugs.python.org/file32680/wave_byteswap_2.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19633>
_______________________________________
More information about the Python-bugs-list
mailing list