Skip to content

Commit 0ff51c0

Browse files
Fixed test_audioop for issue #24326.
24-bit samples are not supported in 2.7.
1 parent f6d1b51 commit 0ff51c0

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Lib/test/test_audioop.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,12 +301,10 @@ def test_ratecv(self):
301301
expected = {
302302
1: packs[1](0, 0x0d, 0x37, -0x26, 0x55, -0x4b, -0x14),
303303
2: packs[2](0, 0x0da7, 0x3777, -0x2630, 0x5673, -0x4a64, -0x129a),
304-
3: packs[3](0, 0x0da740, 0x377776, -0x262fca,
305-
0x56740c, -0x4a62fd, -0x1298c0),
306304
4: packs[4](0, 0x0da740da, 0x37777776, -0x262fc962,
307305
0x56740da6, -0x4a62fc96, -0x1298bf26),
308306
}
309-
for w in 1, 2, 3, 4:
307+
for w in 1, 2, 4:
310308
self.assertEqual(audioop.ratecv(datas[w], w, 1, 8000, 8000, None, 3, 1)[0],
311309
expected[w])
312310
self.assertEqual(audioop.ratecv(datas[w], w, 1, 8000, 8000, None, 30, 10)[0],

0 commit comments

Comments
 (0)