diff options
author | Moshe Zadka <moshez@math.huji.ac.il> | 2000-08-04 13:26:03 (GMT) |
---|---|---|
committer | Moshe Zadka <moshez@math.huji.ac.il> | 2000-08-04 13:26:03 (GMT) |
commit | 040c17fe38f17575d57ef2aecd6d9955d24cb0c6 (patch) | |
tree | 5a616baf5c2e8c7a612119701fbd64dfb2a3906c /Lib/test | |
parent | 3af826ebca80f8a6c782fb590c77ac210ae9e22d (diff) | |
download | cpython-040c17fe38f17575d57ef2aecd6d9955d24cb0c6.zip cpython-040c17fe38f17575d57ef2aecd6d9955d24cb0c6.tar.gz cpython-040c17fe38f17575d57ef2aecd6d9955d24cb0c6.tar.bz2 |
Raise TestSkipped, not ImportError.
Honesty's the best policy.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_linuxaudiodev.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_linuxaudiodev.py b/Lib/test/test_linuxaudiodev.py index ad7fdf2..64cd80b3 100644 --- a/Lib/test/test_linuxaudiodev.py +++ b/Lib/test/test_linuxaudiodev.py @@ -1,4 +1,4 @@ -from test_support import verbose, findfile, TestFailed +from test_support import verbose, findfile, TestFailed, TestSkipped import linuxaudiodev import errno import os @@ -11,7 +11,7 @@ def play_sound_file(path): a = linuxaudiodev.open('w') except linuxaudiodev.error, msg: if msg[0] in (errno.EACCES, errno.ENODEV): - raise ImportError, msg + raise TestSkipped, msg raise TestFailed, msg else: a.write(data) |