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):
def test_alias_fallback(self):
if _have_soundcard():
winsound.PlaySound('!"$%&/(#+*', winsound.SND_ALIAS)
else:
self.assertRaises(
RuntimeError,
winsound.PlaySound,
'!"$%&/(#+*', winsound.SND_ALIAS
)
# see http://bugs.python.org/issue19987
#else:
# self.assertRaises(
# RuntimeError,
# winsound.PlaySound,
# '!"$%&/(#+*', winsound.SND_ALIAS
# )
def test_alias_nofallback(self):
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