Issue #8367: Fix spurious test failure on systems without a sound card.

This commit is contained in:
Stefan Krah 2010-04-12 15:21:25 +00:00
parent fa900d47b8
commit 9aca91d7d7
1 changed files with 3 additions and 5 deletions

View File

@ -193,11 +193,9 @@ class PlaySoundTest(unittest.TestCase):
pass
winsound.PlaySound(None, winsound.SND_PURGE)
else:
self.assertRaises(
RuntimeError,
winsound.PlaySound,
None, winsound.SND_PURGE
)
# Issue 8367: PlaySound(None, winsound.SND_PURGE)
# does not raise on systems without a sound card.
pass
def _get_cscript_path():