Commit 9aca91d7 authored by Stefan Krah's avatar Stefan Krah

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

parent fa900d47
...@@ -193,11 +193,9 @@ class PlaySoundTest(unittest.TestCase): ...@@ -193,11 +193,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():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment