diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-10-20 14:24:42 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-10-20 14:24:42 (GMT) |
commit | 6e9e4fe97c7b86eb7a1fa766cd81b5b1d84b3aea (patch) | |
tree | 75a2ceea94fd075bd7a043b9cbd4e2935987d559 /Lib/test/test_audioop.py | |
parent | c30b178cbc92e62c22527cd7e1af2f02723ba679 (diff) | |
download | cpython-6e9e4fe97c7b86eb7a1fa766cd81b5b1d84b3aea.zip cpython-6e9e4fe97c7b86eb7a1fa766cd81b5b1d84b3aea.tar.gz cpython-6e9e4fe97c7b86eb7a1fa766cd81b5b1d84b3aea.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 ff67f2c..a92cf87 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) @@ -374,8 +373,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() |