Issue #27748: strengthen test_alias_nofallback

This test should always raise RuntimeError.
This commit is contained in:
Zachary Ware 2016-09-05 17:19:35 -05:00
parent 598894ff48
commit 9ed756bc21
1 changed files with 4 additions and 1 deletions

View File

@ -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(