summaryrefslogtreecommitdiff
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 ffb1cd58d9..ab8be02d8b 100644
--- a/Lib/test/test_audioop.py
+++ b/Lib/test/test_audioop.py
@@ -271,7 +271,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'
@@ -281,4 +281,8 @@ def testall():
routines.append(n)
for n in routines:
testone(n, data)
-testall()
+
+
+
+if __name__ == '__main__':
+ test_main()