[Python-checkins] cpython (2.7): Fixed test_audioop for issue #24326.

serhiy.storchaka python-checkins at python.org
Sun May 31 11:06:04 CEST 2015


https://hg.python.org/cpython/rev/7d6a6028b104
changeset:   96422:7d6a6028b104
branch:      2.7
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Sun May 31 12:05:40 2015 +0300
summary:
  Fixed test_audioop for issue #24326.
24-bit samples are not supported in 2.7.

files:
  Lib/test/test_audioop.py |  4 +---
  1 files changed, 1 insertions(+), 3 deletions(-)


diff --git a/Lib/test/test_audioop.py b/Lib/test/test_audioop.py
--- a/Lib/test/test_audioop.py
+++ b/Lib/test/test_audioop.py
@@ -301,12 +301,10 @@
         expected = {
             1: packs[1](0, 0x0d, 0x37, -0x26, 0x55, -0x4b, -0x14),
             2: packs[2](0, 0x0da7, 0x3777, -0x2630, 0x5673, -0x4a64, -0x129a),
-            3: packs[3](0, 0x0da740, 0x377776, -0x262fca,
-                        0x56740c, -0x4a62fd, -0x1298c0),
             4: packs[4](0, 0x0da740da, 0x37777776, -0x262fc962,
                         0x56740da6, -0x4a62fc96, -0x1298bf26),
         }
-        for w in 1, 2, 3, 4:
+        for w in 1, 2, 4:
             self.assertEqual(audioop.ratecv(datas[w], w, 1, 8000, 8000, None, 3, 1)[0],
                              expected[w])
             self.assertEqual(audioop.ratecv(datas[w], w, 1, 8000, 8000, None, 30, 10)[0],

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list