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_sunaudiodev.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_sunaudiodev.py')
-rw-r--r-- | Lib/test/test_sunaudiodev.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/test/test_sunaudiodev.py b/Lib/test/test_sunaudiodev.py index 3750542..470fff8 100644 --- a/Lib/test/test_sunaudiodev.py +++ b/Lib/test/test_sunaudiodev.py @@ -22,7 +22,11 @@ def play_sound_file(path): a.write(data) a.close() -def test(): + +def test_main(): play_sound_file(findfile('audiotest.au')) -test() + + +if __name__ == '__main__': + test_main() |