mirror of https://github.com/python/cpython
Merged revisions 80000 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r80000 | stefan.krah | 2010-04-12 17:21:25 +0200 (Mon, 12 Apr 2010) | 3 lines Issue #8367: Fix spurious test failure on systems without a sound card. ........
This commit is contained in:
parent
2ffceb67ab
commit
833c7a379f
|
@ -191,11 +191,9 @@ class PlaySoundTest(unittest.TestCase):
|
||||||
pass
|
pass
|
||||||
winsound.PlaySound(None, winsound.SND_PURGE)
|
winsound.PlaySound(None, winsound.SND_PURGE)
|
||||||
else:
|
else:
|
||||||
self.assertRaises(
|
# Issue 8367: PlaySound(None, winsound.SND_PURGE)
|
||||||
RuntimeError,
|
# does not raise on systems without a sound card.
|
||||||
winsound.PlaySound,
|
pass
|
||||||
None, winsound.SND_PURGE
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def _get_cscript_path():
|
def _get_cscript_path():
|
||||||
|
|
Loading…
Reference in New Issue