[Python-3000-checkins] r58804 - python/branches/py3k-pep3137/Lib/test/test_audioop.py

guido.van.rossum python-3000-checkins at python.org
Fri Nov 2 21:59:27 CET 2007


Author: guido.van.rossum
Date: Fri Nov  2 21:59:27 2007
New Revision: 58804

Modified:
   python/branches/py3k-pep3137/Lib/test/test_audioop.py
Log:
Fix test_audioop.py.


Modified: python/branches/py3k-pep3137/Lib/test/test_audioop.py
==============================================================================
--- python/branches/py3k-pep3137/Lib/test/test_audioop.py	(original)
+++ python/branches/py3k-pep3137/Lib/test/test_audioop.py	Fri Nov  2 21:59:27 2007
@@ -87,7 +87,7 @@
         print('add')
     data2 = []
     for d in data:
-        str = bytes(len(d))
+        str = buffer(len(d))
         for i,b in enumerate(d):
             str[i] = 2*b
         data2.append(str)
@@ -177,7 +177,7 @@
         print('mul')
     data2 = []
     for d in data:
-        str = bytes(len(d))
+        str = buffer(len(d))
         for i,b in enumerate(d):
             str[i] = 2*b
         data2.append(str)
@@ -207,7 +207,7 @@
 def testtomono(data):
     if verbose:
         print('tomono')
-    data2 = b''
+    data2 = buffer()
     for d in data[0]:
         data2.append(d)
         data2.append(d)
@@ -218,7 +218,7 @@
 def testtostereo(data):
     if verbose:
         print('tostereo')
-    data2 = b''
+    data2 = buffer()
     for d in data[0]:
         data2.append(d)
         data2.append(d)


More information about the Python-3000-checkins mailing list