From 9ed756bc21448bf1f2e1b45e11a523d1ac8c869a Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Mon, 5 Sep 2016 17:19:35 -0500 Subject: Issue #27748: strengthen test_alias_nofallback This test should always raise RuntimeError. --- Lib/test/test_winsound.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_winsound.py b/Lib/test/test_winsound.py index 4a8ab7d..1295f3a 100644 --- a/Lib/test/test_winsound.py +++ b/Lib/test/test_winsound.py @@ -104,7 +104,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( -- cgit v0.12