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 c3725ef..8c27769 100644
--- a/Lib/test/test_winsound.py
+++ b/Lib/test/test_winsound.py
@@ -103,7 +103,10 @@
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(