summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-10-20 14:25:34 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-10-20 14:25:34 (GMT)
commitf3e21ba5af43f1e8637b2752fecc3d4523056b5c (patch)
tree30bb444e793fcba1cd2457200eb907bd018897ba
parent2acc456c334460a7430e386772d1c48b1e0e7c7f (diff)
parent6e9e4fe97c7b86eb7a1fa766cd81b5b1d84b3aea (diff)
downloadcpython-f3e21ba5af43f1e8637b2752fecc3d4523056b5c.zip
cpython-f3e21ba5af43f1e8637b2752fecc3d4523056b5c.tar.gz
cpython-f3e21ba5af43f1e8637b2752fecc3d4523056b5c.tar.bz2
Make test_audioop discoverable by unittest.
-rw-r--r--Lib/test/test_audioop.py6
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()