diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-03-03 04:19:29 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-03-03 04:19:29 (GMT) |
commit | 7dbd91811d87b75cb43441ed6e356232bcf60d28 (patch) | |
tree | 8a6d0ac4e7c4adb7e724a1274e24d83f5b8e7481 /Lib/test/test_audioop.py | |
parent | 963c80fd45d8c94d15ea4085ce200365018a1556 (diff) | |
download | cpython-7dbd91811d87b75cb43441ed6e356232bcf60d28.zip cpython-7dbd91811d87b75cb43441ed6e356232bcf60d28.tar.gz cpython-7dbd91811d87b75cb43441ed6e356232bcf60d28.tar.bz2 |
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.
Diffstat (limited to 'Lib/test/test_audioop.py')
-rw-r--r-- | Lib/test/test_audioop.py | 8 |
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() |