diff options
author | Guido van Rossum <guido@python.org> | 1997-05-21 14:27:20 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-05-21 14:27:20 (GMT) |
commit | 05ba2ab720dff2a2966a481329a4f90bea5eea85 (patch) | |
tree | 79394afef46943c00c1b5c112ea45a8dfd5330f4 /Lib | |
parent | adb3a9db579c98afe778fe469d382c86693a3cf8 (diff) | |
download | cpython-05ba2ab720dff2a2966a481329a4f90bea5eea85.zip cpython-05ba2ab720dff2a2966a481329a4f90bea5eea85.tar.gz cpython-05ba2ab720dff2a2966a481329a4f90bea5eea85.tar.bz2 |
Fix ratecv test (Sjoerd).
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_audioop.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Lib/test/test_audioop.py b/Lib/test/test_audioop.py index e966833..a03fe60 100644 --- a/Lib/test/test_audioop.py +++ b/Lib/test/test_audioop.py @@ -171,11 +171,12 @@ def testmul(data): def testratecv(data): if verbose: - print 'ratecv' - state = (-8000, ((256, 512),)) - if audioop.ratecv(data[0], 1, 1, 8000, 16000, state) != \ - ('\001\000\000\001\001\002', state): - return 0 + print 'ratecv' + state = None + d1, state = audioop.ratecv(data[0], 1, 1, 8000, 16000, state) + d2, state = audioop.ratecv(data[0], 1, 1, 8000, 16000, state) + if d1 + d2 != '\000\000\001\001\002\001\000\000\001\001\002': + return 0 return 1 def testreverse(data): |