[Scipy-svn] r6588 - branches/0.8.x/scipy/io/tests

scipy-svn at scipy.org scipy-svn at scipy.org
Sun Jul 4 04:49:06 EDT 2010


Author: rgommers
Date: 2010-07-04 03:49:06 -0500 (Sun, 04 Jul 2010)
New Revision: 6588

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

Modified: branches/0.8.x/scipy/io/tests/test_wavfile.py
===================================================================
--- branches/0.8.x/scipy/io/tests/test_wavfile.py	2010-07-04 08:48:48 UTC (rev 6587)
+++ branches/0.8.x/scipy/io/tests/test_wavfile.py	2010-07-04 08:49:06 UTC (rev 6588)
@@ -1,10 +1,12 @@
 import os
 import tempfile
+import warnings
+
 import numpy as np
-
 from numpy.testing import *
 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.8.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