summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_audioop.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_audioop.py')
-rw-r--r--Lib/test/test_audioop.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/test/test_audioop.py b/Lib/test/test_audioop.py
index f585733..ce5287c 100644
--- a/Lib/test/test_audioop.py
+++ b/Lib/test/test_audioop.py
@@ -269,7 +269,7 @@ def testone(name, data):
if not rv:
print 'Test FAILED for audioop.'+name+'()'
-def testall():
+def test_main():
data = [gendata1(), gendata2(), gendata4()]
names = dir(audioop)
# We know there is a routine 'add'
@@ -279,4 +279,8 @@ def testall():
routines.append(n)
for n in routines:
testone(n, data)
-testall()
+
+
+
+if __name__ == '__main__':
+ test_main()