Add test_main() functions to various tests where it was simple to do. Done so
that regrtest can execute the test_main() directly instead of relying on import
side-effects.
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 @@
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 @@
routines.append(n)
for n in routines:
testone(n, data)
-testall()
+
+
+
+if __name__ == '__main__':
+ test_main()