summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_winsound.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/Lib/test/test_winsound.py b/Lib/test/test_winsound.py
index abe6727..d9d2892 100644
--- a/Lib/test/test_winsound.py
+++ b/Lib/test/test_winsound.py
@@ -85,13 +85,8 @@ class PlaySoundTest(unittest.TestCase):
return
def test_alias_nofallback(self):
- try:
- winsound.PlaySound(
- '!"$%&/(#+*',
- winsound.SND_ALIAS | winsound.SND_NODEFAULT
- )
- except RuntimeError:
- pass
+ self.assertRaises(RuntimeError, winsound.PlaySound, '!"$%&/(#+*',
+ winsound.SND_ALIAS | winsound.SND_NODEFAULT)
def test_stopasync(self):
winsound.PlaySound(