[SciPy-Dev] wavfile test failure on OS X

Ralf Gommers ralf.gommers at googlemail.com
Thu Jun 17 12:15:44 EDT 2010


On OS X 10.5 this failure was reported:

ERROR: test_wavfile.test_read_1
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/sw/lib/python2.6/site-
packages/nose/case.py", line 186, in runTest
   self.test(*self.arg)
 File "/sw/lib/python2.6/site-packages/scipy/io/tests/test_wavfile.py", line
12, in test_read_1
   rate, data = wavfile.read(datafile('test-44100-le-1ch-4bytes.wav'))
 File "/sw/lib/python2.6/site-packages/scipy/io/wavfile.py", line 124, in
read
   return rate, data
UnboundLocalError: local variable 'data' referenced before assignment


On 10.6 it doesn't fail but has been spitting out warnings as well for a
long time:
  warnings.warn(depdoc, DeprecationWarning)
..../Users/rgommers/Code/scipy/scipy/io/wavfile.py:30: WavFileWarning:
Unfamiliar format bytes
  warnings.warn("Unfamiliar format bytes", WavFileWarning)
/Users/rgommers/Code/scipy/scipy/io/wavfile.py:120: WavFileWarning: chunk
not understood
  warnings.warn("chunk not understood", WavFileWarning)


Anyone know how to fix this?

Ralf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20100618/88325cd7/attachment.html>


More information about the SciPy-Dev mailing list