Commit f11104e8 authored by Zachary Ware's avatar Zachary Ware

Issue #27748: strengthen test_alias_nofallback

This test should always raise RuntimeError.
parent 0f3d86a4
......@@ -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(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment