Commit 84ee2c06 authored by Barry Warsaw's avatar Barry Warsaw

Catch sunaudiodev.error on open() and re-raise TestFailed exception.

parent 79a01d93
......@@ -14,7 +14,11 @@ def play_sound_file(path):
fp = open(path, 'r')
data = fp.read()
fp.close()
try:
a = sunaudiodev.open('w')
except sunaudiodev.error, msg:
raise TestFailed, msg
else:
a.write(data)
a.close()
......
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