From: Christian Heimes Date: Mon, 16 Dec 2013 13:54:24 +0000 (+0100) Subject: Issue #19987: disable test_winsound's test_alias_fallback test when no sound card X-Git-Tag: v3.4.0b2~204 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e9dacaa93f64ba05f06c06db7d81571ba580a352;p=python Issue #19987: disable test_winsound's test_alias_fallback test when no sound card is available. The test fails on Windows Server 2008. --- diff --git a/Lib/test/test_winsound.py b/Lib/test/test_winsound.py index d8a617e64f..f1af2d2fc5 100644 --- a/Lib/test/test_winsound.py +++ b/Lib/test/test_winsound.py @@ -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():