summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sunau.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-12-14 18:42:22 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-12-14 18:42:22 (GMT)
commit79f19f9e7c1849be68bba57ee78c116714e2c5ea (patch)
treeb94507a79a0fbd36d29ee7f28d0a3d63e2d56b7f /Lib/test/test_sunau.py
parent03241e801780edd967923d1cce00c2d07b208e58 (diff)
parent84d28b4ee5983bcb048323a0e56ea4c5498a0652 (diff)
downloadcpython-79f19f9e7c1849be68bba57ee78c116714e2c5ea.zip
cpython-79f19f9e7c1849be68bba57ee78c116714e2c5ea.tar.gz
cpython-79f19f9e7c1849be68bba57ee78c116714e2c5ea.tar.bz2
Issue #19623: Fixed writing to unseekable files in the aifc module.
Diffstat (limited to 'Lib/test/test_sunau.py')
-rw-r--r--Lib/test/test_sunau.py28
1 files changed, 9 insertions, 19 deletions
diff --git a/Lib/test/test_sunau.py b/Lib/test/test_sunau.py
index af9ffec..0f4134e 100644
--- a/Lib/test/test_sunau.py
+++ b/Lib/test/test_sunau.py
@@ -6,10 +6,12 @@ import sys
import sunau
-class SunauPCM8Test(audiotests.AudioWriteTests,
- audiotests.AudioTestsWithSourceFile,
- unittest.TestCase):
+class SunauTest(audiotests.AudioWriteTests,
+ audiotests.AudioTestsWithSourceFile):
module = sunau
+
+
+class SunauPCM8Test(SunauTest, unittest.TestCase):
sndfilename = 'pluck-pcm8.au'
sndfilenframes = 3307
nchannels = 2
@@ -26,10 +28,7 @@ class SunauPCM8Test(audiotests.AudioWriteTests,
""")
-class SunauPCM16Test(audiotests.AudioWriteTests,
- audiotests.AudioTestsWithSourceFile,
- unittest.TestCase):
- module = sunau
+class SunauPCM16Test(SunauTest, unittest.TestCase):
sndfilename = 'pluck-pcm16.au'
sndfilenframes = 3307
nchannels = 2
@@ -48,10 +47,7 @@ class SunauPCM16Test(audiotests.AudioWriteTests,
""")
-class SunauPCM24Test(audiotests.AudioWriteTests,
- audiotests.AudioTestsWithSourceFile,
- unittest.TestCase):
- module = sunau
+class SunauPCM24Test(SunauTest, unittest.TestCase):
sndfilename = 'pluck-pcm24.au'
sndfilenframes = 3307
nchannels = 2
@@ -76,10 +72,7 @@ class SunauPCM24Test(audiotests.AudioWriteTests,
""")
-class SunauPCM32Test(audiotests.AudioWriteTests,
- audiotests.AudioTestsWithSourceFile,
- unittest.TestCase):
- module = sunau
+class SunauPCM32Test(SunauTest, unittest.TestCase):
sndfilename = 'pluck-pcm32.au'
sndfilenframes = 3307
nchannels = 2
@@ -104,10 +97,7 @@ class SunauPCM32Test(audiotests.AudioWriteTests,
""")
-class SunauULAWTest(audiotests.AudioWriteTests,
- audiotests.AudioTestsWithSourceFile,
- unittest.TestCase):
- module = sunau
+class SunauULAWTest(SunauTest, unittest.TestCase):
sndfilename = 'pluck-ulaw.au'
sndfilenframes = 3307
nchannels = 2