From: Zachary Ware Date: Mon, 5 Sep 2016 22:19:35 +0000 (-0500) Subject: Issue #27748: strengthen test_alias_nofallback X-Git-Tag: v2.7.13rc1~177 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19071c004695d75c6dd0cc4b15dcafc8cde09bde;p=thirdparty%2FPython%2Fcpython.git Issue #27748: strengthen test_alias_nofallback This test should always raise RuntimeError. --- diff --git a/Lib/test/test_winsound.py b/Lib/test/test_winsound.py index c3725ef3eb86..8c27769181db 100644 --- a/Lib/test/test_winsound.py +++ b/Lib/test/test_winsound.py @@ -103,7 +103,10 @@ class PlaySoundTest(unittest.TestCase): safe_PlaySound('!"$%&/(#+*', winsound.SND_ALIAS) def test_alias_nofallback(self): - safe_PlaySound('!"$%&/(#+*', winsound.SND_ALIAS | winsound.SND_NODEFAULT) + self.assertRaises(RuntimeError, + winsound.PlaySound, + '!"$%&/(#+*', + winsound.SND_ALIAS | winsound.SND_NODEFAULT) def test_stopasync(self): safe_PlaySound(