[Scipy-svn] r7053 - branches/0.9.x/scipy/io/tests

scipy-svn at scipy.org scipy-svn at scipy.org
Sat Jan 15 10:23:58 EST 2011


Author: rgommers
Date: 2011-01-15 09:23:58 -0600 (Sat, 15 Jan 2011)
New Revision: 7053

Modified:
   branches/0.9.x/scipy/io/tests/test_wavfile.py
Log:
TST: Filter noise from io.wavfile tests in 0.8.x branch.

Modified: branches/0.9.x/scipy/io/tests/test_wavfile.py
===================================================================
--- branches/0.9.x/scipy/io/tests/test_wavfile.py	2011-01-15 15:23:31 UTC (rev 7052)
+++ branches/0.9.x/scipy/io/tests/test_wavfile.py	2011-01-15 15:23:58 UTC (rev 7053)
@@ -1,10 +1,12 @@
 import os
 import tempfile
+import warnings
+
 import numpy as np
-
 from numpy.testing import assert_equal, assert_, assert_raises, assert_array_equal
 from scipy.io import wavfile
 
+
 def datafile(fn):
     return os.path.join(os.path.dirname(__file__), 'data', fn)
 
@@ -55,3 +57,8 @@
                     for channels in (1, 2, 5):
                         dt = np.dtype('%s%s%d' % (endianness, signed, size))
                         yield _check_roundtrip, rate, dt, channels
+
+
+# Filter test noise in 0.9.x branch. Format of data file does not seem to be
+# recognized.
+warnings.filterwarnings("ignore", category=wavfile.WavFileWarning)




More information about the Scipy-svn mailing list