Commit e8fcc255 authored by Tim Peters's avatar Tim Peters

PlaySoundTest.test_alias_nofallback(): Simplified the coding by using

assertRaises.

NOT a bugfix candidate.
parent af020e9d
......@@ -85,13 +85,8 @@ class PlaySoundTest(unittest.TestCase):
return
def test_alias_nofallback(self):
try:
winsound.PlaySound(
'!"$%&/(#+*',
winsound.SND_ALIAS | winsound.SND_NODEFAULT
)
except RuntimeError:
pass
self.assertRaises(RuntimeError, winsound.PlaySound, '!"$%&/(#+*',
winsound.SND_ALIAS | winsound.SND_NODEFAULT)
def test_stopasync(self):
winsound.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