]> granicus.if.org Git - python/commitdiff
Fixed the wave module testing on big-endian platforms.
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 28 Dec 2013 08:18:44 +0000 (10:18 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Sat, 28 Dec 2013 08:18:44 +0000 (10:18 +0200)
array.fromfile() works only with file objects, not io.FileIO instances.

Lib/test/audiotests.py

index 93576e6a9ce2bfb0589a44e045a88dee2e13fe32..f4abd2a81cb679e8ece31d75602cca14d6d60f24 100644 (file)
@@ -6,7 +6,7 @@ import pickle
 import sys
 import base64
 
-class UnseekableIO(io.FileIO):
+class UnseekableIO(file):
     def tell(self):
         raise io.UnsupportedOperation