Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c6d1f910
Commit
c6d1f910
authored
Jan 05, 2006
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If the audio file does not exist, the test should be skipped. Will backport.
parent
f2d66fe1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Lib/test/test_linuxaudiodev.py
Lib/test/test_linuxaudiodev.py
+1
-1
Lib/test/test_ossaudiodev.py
Lib/test/test_ossaudiodev.py
+1
-1
No files found.
Lib/test/test_linuxaudiodev.py
View file @
c6d1f910
...
...
@@ -28,7 +28,7 @@ def play_sound_file(path):
try
:
a
=
linuxaudiodev
.
open
(
'w'
)
except
linuxaudiodev
.
error
,
msg
:
if
msg
[
0
]
in
(
errno
.
EACCES
,
errno
.
ENODEV
,
errno
.
EBUSY
):
if
msg
[
0
]
in
(
errno
.
EACCES
,
errno
.
ENO
ENT
,
errno
.
ENO
DEV
,
errno
.
EBUSY
):
raise
TestSkipped
,
msg
raise
TestFailed
,
msg
...
...
Lib/test/test_ossaudiodev.py
View file @
c6d1f910
...
...
@@ -45,7 +45,7 @@ def play_sound_file(data, rate, ssize, nchannels):
try
:
dsp
=
ossaudiodev
.
open
(
'w'
)
except
IOError
,
msg
:
if
msg
[
0
]
in
(
errno
.
EACCES
,
errno
.
ENODEV
,
errno
.
EBUSY
):
if
msg
[
0
]
in
(
errno
.
EACCES
,
errno
.
ENO
ENT
,
errno
.
ENO
DEV
,
errno
.
EBUSY
):
raise
TestSkipped
,
msg
raise
TestFailed
,
msg
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment