Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 040c17f

Browse files
author
Moshe Zadka
committed
Raise TestSkipped, not ImportError.
Honesty's the best policy.
1 parent 3af826e commit 040c17f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_linuxaudiodev.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from test_support import verbose, findfile, TestFailed
1+
from test_support import verbose, findfile, TestFailed, TestSkipped
22
import linuxaudiodev
33
import errno
44
import os
@@ -11,7 +11,7 @@ def play_sound_file(path):
1111
a = linuxaudiodev.open('w')
1212
except linuxaudiodev.error, msg:
1313
if msg[0] in (errno.EACCES, errno.ENODEV):
14-
raise ImportError, msg
14+
raise TestSkipped, msg
1515
raise TestFailed, msg
1616
else:
1717
a.write(data)

0 commit comments

Comments
 (0)