diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-10-20 14:25:34 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-10-20 14:25:34 (GMT) |
commit | f3e21ba5af43f1e8637b2752fecc3d4523056b5c (patch) | |
tree | 30bb444e793fcba1cd2457200eb907bd018897ba /Lib/test/test_audioop.py | |
parent | 2acc456c334460a7430e386772d1c48b1e0e7c7f (diff) | |
parent | 6e9e4fe97c7b86eb7a1fa766cd81b5b1d84b3aea (diff) | |
download | cpython-f3e21ba5af43f1e8637b2752fecc3d4523056b5c.zip cpython-f3e21ba5af43f1e8637b2752fecc3d4523056b5c.tar.gz cpython-f3e21ba5af43f1e8637b2752fecc3d4523056b5c.tar.bz2 |
Make test_audioop discoverable by unittest.
Diffstat (limited to 'Lib/test/test_audioop.py')
-rw-r--r-- | Lib/test/test_audioop.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/test/test_audioop.py b/Lib/test/test_audioop.py index f222811..cf0ef7b 100644 --- a/Lib/test/test_audioop.py +++ b/Lib/test/test_audioop.py @@ -1,7 +1,6 @@ import audioop import sys import unittest -from test.support import run_unittest def pack(width, data): return b''.join(v.to_bytes(width, sys.byteorder, signed=True) for v in data) @@ -415,8 +414,5 @@ class TestAudioop(unittest.TestCase): self.assertRaises(audioop.error, audioop.alaw2lin, data, size) self.assertRaises(audioop.error, audioop.adpcm2lin, data, size, state) -def test_main(): - run_unittest(TestAudioop) - if __name__ == '__main__': - test_main() + unittest.main() |