]> granicus.if.org Git - python/commitdiff
Raise TestSkipped, not ImportError.
authorMoshe Zadka <moshez@math.huji.ac.il>
Fri, 4 Aug 2000 13:26:03 +0000 (13:26 +0000)
committerMoshe Zadka <moshez@math.huji.ac.il>
Fri, 4 Aug 2000 13:26:03 +0000 (13:26 +0000)
Honesty's the best policy.

Lib/test/test_linuxaudiodev.py

index ad7fdf238dd9806d76fea3dd876eb9dc7a8b65d6..64cd80b3b16c0407b176fa3e10f777834bac0fc5 100644 (file)
@@ -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)