[Python-3000-checkins] r54583 - python/branches/p3yk/Lib/test/test_linuxaudiodev.py python/branches/p3yk/Lib/test/test_ossaudiodev.py

collin.winter python-3000-checkins at python.org
Tue Mar 27 06:55:27 CEST 2007


Author: collin.winter
Date: Tue Mar 27 06:55:27 2007
New Revision: 54583

Modified:
   python/branches/p3yk/Lib/test/test_linuxaudiodev.py
   python/branches/p3yk/Lib/test/test_ossaudiodev.py
Log:
Fix two bugs related to the remove of exception subscripting.

Modified: python/branches/p3yk/Lib/test/test_linuxaudiodev.py
==============================================================================
--- python/branches/p3yk/Lib/test/test_linuxaudiodev.py	(original)
+++ python/branches/p3yk/Lib/test/test_linuxaudiodev.py	Tue Mar 27 06:55:27 2007
@@ -28,7 +28,7 @@
     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
 

Modified: python/branches/p3yk/Lib/test/test_ossaudiodev.py
==============================================================================
--- python/branches/p3yk/Lib/test/test_ossaudiodev.py	(original)
+++ python/branches/p3yk/Lib/test/test_ossaudiodev.py	Tue Mar 27 06:55:27 2007
@@ -49,7 +49,7 @@
     try:
         dsp = ossaudiodev.open('w')
     except IOError 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
 


More information about the Python-3000-checkins mailing list