Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(270833)

Delta Between Two Patch Sets: Lib/test/test_ossaudiodev.py

Issue 16510: Using appropriate checks in tests
Left Patch Set: Created 5 years, 9 months ago
Right Patch Set: Created 5 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Lib/test/test_os.py ('k') | Lib/test/test_peepholer.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 from test import support 1 from test import support
2 support.requires('audio') 2 support.requires('audio')
3 3
4 from test.support import findfile 4 from test.support import findfile
5 5
6 ossaudiodev = support.import_module('ossaudiodev') 6 ossaudiodev = support.import_module('ossaudiodev')
7 7
8 import errno 8 import errno
9 import sys 9 import sys
10 import sunau 10 import sunau
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 except (ossaudiodev.error, OSError) as msg: 193 except (ossaudiodev.error, OSError) as msg:
194 if msg.args[0] in (errno.EACCES, errno.ENOENT, 194 if msg.args[0] in (errno.EACCES, errno.ENOENT,
195 errno.ENODEV, errno.EBUSY): 195 errno.ENODEV, errno.EBUSY):
196 raise unittest.SkipTest(msg) 196 raise unittest.SkipTest(msg)
197 raise 197 raise
198 dsp.close() 198 dsp.close()
199 support.run_unittest(__name__) 199 support.run_unittest(__name__)
200 200
201 if __name__ == "__main__": 201 if __name__ == "__main__":
202 test_main() 202 test_main()
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+