diff --git a/Lib/test/test_winsound.py b/Lib/test/test_winsound.py index 381edcbb004..1cfef779d67 100644 --- a/Lib/test/test_winsound.py +++ b/Lib/test/test_winsound.py @@ -120,10 +120,7 @@ def test_alias_fallback(self): safe_PlaySound('!"$%&/(#+*', winsound.SND_ALIAS) def test_alias_nofallback(self): - self.assertRaises(RuntimeError, - winsound.PlaySound, - '!"$%&/(#+*', - winsound.SND_ALIAS | winsound.SND_NODEFAULT) + safe_PlaySound('!"$%&/(#+*', winsound.SND_ALIAS | winsound.SND_NODEFAULT) def test_stopasync(self): safe_PlaySound(