summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ossaudiodev.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2010-05-05 16:15:09 (GMT)
committerBarry Warsaw <barry@python.org>2010-05-05 16:15:09 (GMT)
commit43ad706ef4fa32a1a4722254b137fe5b382a4b1b (patch)
treeecaaf4ff76e39551dd0095682b9a41f690f77208 /Lib/test/test_ossaudiodev.py
parenta4c2a5c9a0dd12bafa3d36c7ced1d6faed6892d0 (diff)
downloadcpython-43ad706ef4fa32a1a4722254b137fe5b382a4b1b.zip
cpython-43ad706ef4fa32a1a4722254b137fe5b382a4b1b.tar.gz
cpython-43ad706ef4fa32a1a4722254b137fe5b382a4b1b.tar.bz2
Bug 7755: audiotest.au is arguably copyrighted material, but definitely makes
Debian unhappy. The actual contents of the audio clip are unimportant, so replace it with something that we know is okay. Guido likes woodpeckers.
Diffstat (limited to 'Lib/test/test_ossaudiodev.py')
-rw-r--r--Lib/test/test_ossaudiodev.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_ossaudiodev.py b/Lib/test/test_ossaudiodev.py
index 6de4671..7a357a0 100644
--- a/Lib/test/test_ossaudiodev.py
+++ b/Lib/test/test_ossaudiodev.py
@@ -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()