Commit e9dacaa9 authored by Christian Heimes's avatar Christian Heimes

Issue #19987: disable test_winsound's test_alias_fallback test when no sound card

is available. The test fails on Windows Server 2008.
parent d9fbb446
...@@ -160,12 +160,13 @@ class PlaySoundTest(unittest.TestCase): ...@@ -160,12 +160,13 @@ class PlaySoundTest(unittest.TestCase):
def test_alias_fallback(self): def test_alias_fallback(self):
if _have_soundcard(): if _have_soundcard():
winsound.PlaySound('!"$%&/(#+*', winsound.SND_ALIAS) winsound.PlaySound('!"$%&/(#+*', winsound.SND_ALIAS)
else: # see http://bugs.python.org/issue19987
self.assertRaises( #else:
RuntimeError, # self.assertRaises(
winsound.PlaySound, # RuntimeError,
'!"$%&/(#+*', winsound.SND_ALIAS # winsound.PlaySound,
) # '!"$%&/(#+*', winsound.SND_ALIAS
# )
def test_alias_nofallback(self): def test_alias_nofallback(self):
if _have_soundcard(): if _have_soundcard():
......
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