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