]> granicus.if.org Git - python/commitdiff
Bug 7755: audiotest.au is arguably copyrighted material, but definitely makes
authorBarry Warsaw <barry@python.org>
Wed, 5 May 2010 16:18:31 +0000 (16:18 +0000)
committerBarry Warsaw <barry@python.org>
Wed, 5 May 2010 16:18:31 +0000 (16:18 +0000)
Debian unhappy.  The actual contents of the audio clip are unimportant, so
replace it with something that we know is okay.  Guido likes woodpeckers.

Lib/email/test/data/audiotest.au
Lib/test/audiotest.au
Lib/test/test_ossaudiodev.py
Misc/NEWS

index 1ad28ce1fdd781e4370fdf68577e8a35b4ed8a8e..f76b0501b8c61b4fabbb3715b69a9434a42469cb 100644 (file)
Binary files a/Lib/email/test/data/audiotest.au and b/Lib/email/test/data/audiotest.au differ
index 1ad28ce1fdd781e4370fdf68577e8a35b4ed8a8e..f76b0501b8c61b4fabbb3715b69a9434a42469cb 100644 (file)
Binary files a/Lib/test/audiotest.au and b/Lib/test/audiotest.au differ
index 055ad6c167c6e849b743cc4a90146ba164c21965..5dea640d8923388d025a196479c2d9152a891f08 100644 (file)
@@ -76,7 +76,7 @@ class OSSAudioDevTests(unittest.TestCase):
 
         # set parameters based on .au file headers
         dsp.setparameters(AFMT_S16_NE, nchannels, rate)
-        self.assertTrue(abs(expected_time - 2.94) < 1e-2, expected_time)
+        self.assertTrue(abs(expected_time - 3.51) < 1e-2, expected_time)
         t1 = time.time()
         dsp.write(data)
         dsp.close()
index b25f110c17c312f5c9d4586bd719dacc8823147f..f3d27e10bad4514100c0e346de7b22f4bdbffa99 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -348,6 +348,8 @@ C-API
 Library
 -------
 
+- Issue #7755: Use an unencumbered audio file for tests.
+
 - Issue #8621: uuid.uuid4() returned the same sequence of values in the
   parent and any children created using ``os.fork`` on MacOS X 10.6.