From 6e9e4fe97c7b86eb7a1fa766cd81b5b1d84b3aea Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 20 Oct 2013 17:24:42 +0300 Subject: Make test_audioop discoverable by unittest. --- Lib/test/test_audioop.py | 6 +----- 1 file changed, 1 insertion(+), 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() -- cgit v0.12