Commit 040c17fe authored by Moshe Zadka's avatar Moshe Zadka

Raise TestSkipped, not ImportError.

Honesty's the best policy.
parent 3af826eb
from test_support import verbose, findfile, TestFailed from test_support import verbose, findfile, TestFailed, TestSkipped
import linuxaudiodev import linuxaudiodev
import errno import errno
import os import os
...@@ -11,7 +11,7 @@ def play_sound_file(path): ...@@ -11,7 +11,7 @@ def play_sound_file(path):
a = linuxaudiodev.open('w') a = linuxaudiodev.open('w')
except linuxaudiodev.error, msg: except linuxaudiodev.error, msg:
if msg[0] in (errno.EACCES, errno.ENODEV): if msg[0] in (errno.EACCES, errno.ENODEV):
raise ImportError, msg raise TestSkipped, msg
raise TestFailed, msg raise TestFailed, msg
else: else:
a.write(data) a.write(data)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment