cpython: 7b040bc289e8 (original) (raw)

Mercurial > cpython

changeset 87304:7b040bc289e8 3.3

Issue #19633: Fixed writing not compressed 16- and 32-bit wave files on big-endian platforms. Temporary forbidden test_unseekable_incompleted_write fornot compressed 16- and 32-bit wave file on big-endian platforms. [#19633]

Serhiy Storchaka storchaka@gmail.com
date Thu, 21 Nov 2013 11:02:30 +0200
parents 74b76a726285
children 7cf7f19445ba cfbd894f1df1
files Lib/test/audiotests.py Lib/test/test_wave.py Lib/wave.py Misc/NEWS
diffstat 4 files changed, 21 insertions(+), 3 deletions(-)[+] [-] Lib/test/audiotests.py 6 Lib/test/test_wave.py 11 Lib/wave.py 4 Misc/NEWS 3

line wrap: on

line diff

--- a/Lib/test/audiotests.py +++ b/Lib/test/audiotests.py @@ -6,7 +6,8 @@ import pickle import sys def byteswap2(data):

--- a/Lib/test/test_wave.py +++ b/Lib/test/test_wave.py @@ -48,6 +48,12 @@ class WavePCM16Test(audiotests.AudioWrit if sys.byteorder != 'big': frames = audiotests.byteswap2(frames)

+ + class WavePCM24Test(audiotests.AudioWriteTests, audiotests.AudioTestsWithSourceFile, @@ -108,6 +114,11 @@ class WavePCM32Test(audiotests.AudioWrit if sys.byteorder != 'big': frames = audiotests.byteswap4(frames)

+ if name == 'main': unittest.main()

--- a/Lib/wave.py +++ b/Lib/wave.py @@ -424,7 +424,9 @@ class Wave_write: data = self._convert(data) if self._sampwidth in (2, 4) and sys.byteorder == 'big': import array

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -13,6 +13,9 @@ Core and Builtins Library ------- +- Issue #19633: Fixed writing not compressed 16- and 32-bit wave files on