Issue #27748: strengthen test_alias_nofallback
This test should always raise RuntimeError.
This commit is contained in:
parent
598894ff48
commit
9ed756bc21
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue