summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Klose <doko@ubuntu.com>2010-05-21 13:11:00 (GMT)
committerMatthias Klose <doko@ubuntu.com>2010-05-21 13:11:00 (GMT)
commit06f018d54d939625c9d47525c8dc42755df11ce5 (patch)
tree7b596928eb92225696f4096f44d9f4251178cd0a
parent8e2e16e95e1132cdde9a64bcfc1d27120079c749 (diff)
downloadcpython-06f018d54d939625c9d47525c8dc42755df11ce5.zip
cpython-06f018d54d939625c9d47525c8dc42755df11ce5.tar.gz
cpython-06f018d54d939625c9d47525c8dc42755df11ce5.tar.bz2
Merged revisions 80795 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r80795 | barry.warsaw | 2010-05-05 18:18:31 +0200 (Mi, 05 Mai 2010) | 5 lines 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. ........
-rw-r--r--Lib/email/test/data/audiotest.aubin23493 -> 28144 bytes
-rw-r--r--Lib/test/audiotest.aubin23493 -> 28144 bytes
-rw-r--r--Lib/test/test_ossaudiodev.py2
-rw-r--r--Misc/NEWS2
4 files changed, 3 insertions, 1 deletions
diff --git a/Lib/email/test/data/audiotest.au b/Lib/email/test/data/audiotest.au
index 1ad28ce..f76b050 100644
--- a/Lib/email/test/data/audiotest.au
+++ b/Lib/email/test/data/audiotest.au
Binary files differ
diff --git a/Lib/test/audiotest.au b/Lib/test/audiotest.au
index 1ad28ce..f76b050 100644
--- a/Lib/test/audiotest.au
+++ b/Lib/test/audiotest.au
Binary files differ
diff --git a/Lib/test/test_ossaudiodev.py b/Lib/test/test_ossaudiodev.py
index 055ad6c..5dea640 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()
diff --git a/Misc/NEWS b/Misc/NEWS
index f52ec6d..de634e5 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -83,6 +83,8 @@ Library
- Issue #4265: shutil.copyfile() was leaking file descriptors when disk fills.
Patch by Tres Seaver.
+- 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.