summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_audioop.py
Commit message (Collapse)AuthorAgeFilesLines
* [2.7] bpo-28261: Prevent raising SystemError where PyArg_ParseTuple is used ↵Oren Milman2017-08-261-0/+4
| | | | to parse non-args. (#3213)
* Issue #24456: Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()Serhiy Storchaka2015-06-281-0/+15
| | | | | functions of the audioop module. Fixed SystemError when the state is not a tuple. Fixed possible memory leak.
* Fixed test_audioop for issue #24326.Serhiy Storchaka2015-05-311-3/+1
| | | | 24-bit samples are not supported in 2.7.
* Issue #24326: Fixed audioop.ratecv() with non-default weightB argument.Serhiy Storchaka2015-05-291-0/+17
| | | | Original patch by David Moore.
* Issue #16686: Fixed a lot of bugs in audioop module.Serhiy Storchaka2013-02-091-123/+282
| | | | | | | | | | | | * avgpp() and maxpp() no more crash on empty and 1-samples input fragment. They now work when peak-peak values are greater INT_MAX. * ratecv() no more crashes on empty input fragment. * Fixed an integer overflow in ratecv(). * Fixed an integer overflow in add() and bias() for 32-bit samples. * reverse(), lin2lin() and ratecv() no more lose precision for 32-bit samples. * max() and rms() no more returns negative result for 32-bit sample -0x80000000. * minmax() now returns correct max value for 32-bit sample -0x80000000. * avg(), mul(), tomono() and tostereo() now round negative result down and can return 32-bit sample -0x80000000. * add() now can return 32-bit sample -0x80000000.
* Fix failing test on big-endian machines (issue #13806).Antoine Pitrou2012-02-041-8/+23
|
* Issue #13806: The size check in audioop decompression functions was too ↵Antoine Pitrou2012-01-281-6/+19
| | | | | | strict and could reject valid compressed data. Patch by Oleg Plakhotnyuk.
* Issue #7673: Fix security vulnerability (CVE-2010-2089) in the audioop module,Victor Stinner2010-07-031-0/+33
| | | | ensure that the input string length is a multiple of the frame size
* Fix misspeeld method name (negative)Neal Norwitz2008-07-201-1/+1
|
* Issue 3306. Better control for a lenght in findmax() function.Facundo Batista2008-07-071-0/+4
|
* fix typoBenjamin Peterson2008-06-281-1/+1
|
* convert test_audioop to unittest. Thanks to Giampaolo Rodola.Benjamin Peterson2008-06-281-264/+147
|
* Add test_main() functions to various tests where it was simple to do. Done soBrett Cannon2008-03-031-2/+6
| | | | | that regrtest can execute the test_main() directly instead of relying on import side-effects.
* SF [ 1231053 ] audioop - alaw encoding/decoding added, code updatedAnthony Baxter2006-03-201-3/+21
| | | | | | | | | This patch adds a-LAW encoding to audioop and replaces the old u-LAW encoding/decoding code with the current code from sox. Possible issues: the code from sox uses int16_t. Code by Lars Immisch
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* The first batch of changes recommended by the fixdiv tool. These areGuido van Rossum2001-09-041-2/+2
| | | | | mostly changes of / operators into //. Once or twice I did more or less than recommended.
* a bold attempt to fix things broken by MAL's verify patch: importFredrik Lundh2001-01-171-1/+1
| | | | 'verify' iff it's used by a test module...
* This patch removes all uses of "assert" in the regression test suiteMarc-André Lemburg2001-01-171-1/+1
| | | | | | | and replaces them with a new API verify(). As a result the regression suite will also perform its tests in optimization mode. Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
* Update the code to better reflect recommended style:Fred Drake2000-12-121-46/+46
| | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-261-97/+97
|
* Fix ratecv test (Sjoerd).Guido van Rossum1997-05-211-5/+6
|
* Added test for ratecv (from Sjoerd, reformatted).Guido van Rossum1997-02-141-0/+9
|
* Updated to include the verbose flag from test_supportRoger E. Masse1997-01-031-152/+197
|
* Added test for minmax.Guido van Rossum1996-12-201-0/+7
|
* Add test code for audioop and rgbimg (includes three binary files!)Guido van Rossum1994-01-121-0/+202