summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_linuxaudiodev.py
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-03-27 04:55:27 (GMT)
committerCollin Winter <collinw@gmail.com>2007-03-27 04:55:27 (GMT)
commite33761dcaa9f283e291127161fa9d65440d01f87 (patch)
tree7bb9789714255415bd05d686ba826ba5f123fe39 /Lib/test/test_linuxaudiodev.py
parent3e81ec8c7c72a5e784c660876798bb3afd09157b (diff)
downloadcpython-e33761dcaa9f283e291127161fa9d65440d01f87.zip
cpython-e33761dcaa9f283e291127161fa9d65440d01f87.tar.gz
cpython-e33761dcaa9f283e291127161fa9d65440d01f87.tar.bz2
Fix two bugs related to the remove of exception subscripting.
Diffstat (limited to 'Lib/test/test_linuxaudiodev.py')
-rw-r--r--Lib/test/test_linuxaudiodev.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_linuxaudiodev.py b/Lib/test/test_linuxaudiodev.py
index eac204f..340dc2d 100644
--- a/Lib/test/test_linuxaudiodev.py
+++ b/Lib/test/test_linuxaudiodev.py
@@ -28,7 +28,7 @@ def play_sound_file(path):
try:
a = linuxaudiodev.open('w')
except linuxaudiodev.error as msg:
- if msg[0] in (errno.EACCES, errno.ENOENT, errno.ENODEV, errno.EBUSY):
+ if msg.args[0] in (errno.EACCES, errno.ENOENT, errno.ENODEV, errno.EBUSY):
raise TestSkipped, msg
raise TestFailed, msg