summaryrefslogtreecommitdiffstats
path: root/Lib/dos-8x3/test_lin.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/dos-8x3/test_lin.py')
-rw-r--r--Lib/dos-8x3/test_lin.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/dos-8x3/test_lin.py b/Lib/dos-8x3/test_lin.py
index 4b612a7..4faaab1 100644
--- a/Lib/dos-8x3/test_lin.py
+++ b/Lib/dos-8x3/test_lin.py
@@ -1,5 +1,6 @@
-from test_support import verbose, findfile, TestFailed
+from test_support import verbose, findfile, TestFailed, TestSkipped
import linuxaudiodev
+import errno
import os
def play_sound_file(path):
@@ -9,6 +10,8 @@ def play_sound_file(path):
try:
a = linuxaudiodev.open('w')
except linuxaudiodev.error, msg:
+ if msg[0] in (errno.EACCES, errno.ENODEV):
+ raise TestSkipped, msg
raise TestFailed, msg
else:
a.write(data)