diff options
author | Guido van Rossum <guido@python.org> | 2000-12-19 06:32:57 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-12-19 06:32:57 (GMT) |
commit | 70f128861f8caf57cb06a56b30724f6c9681b829 (patch) | |
tree | 8ca0a9829a364f592e4142a471555c0927ea3c3e /Lib | |
parent | 5db5ba1ee321ab5dba89a713c2c9f6a5b8e19599 (diff) | |
download | cpython-70f128861f8caf57cb06a56b30724f6c9681b829.zip cpython-70f128861f8caf57cb06a56b30724f6c9681b829.tar.gz cpython-70f128861f8caf57cb06a56b30724f6c9681b829.tar.bz2 |
Use binary mode to open "wave" files.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_wave.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_wave.py b/Lib/test/test_wave.py index a7a5e24..e2dc688 100644 --- a/Lib/test/test_wave.py +++ b/Lib/test/test_wave.py @@ -13,7 +13,7 @@ nframes = 100 testfile = tempfile.mktemp() -f = wave.open(testfile, 'w') +f = wave.open(testfile, 'wb') f.setnchannels(nchannels) f.setsampwidth(sampwidth) f.setframerate(framerate) @@ -22,7 +22,7 @@ output = '\0' * nframes * nchannels * sampwidth f.writeframes(output) f.close() -f = wave.open(testfile, 'r') +f = wave.open(testfile, 'rb') check(nchannels == f.getnchannels(), "nchannels") check(sampwidth == f.getsampwidth(), "sampwidth") check(framerate == f.getframerate(), "framerate") |