mirror of https://github.com/python/cpython.git
PlaySoundTest.test_alias_nofallback(): Simplified the coding by using
assertRaises. NOT a bugfix candidate.
This commit is contained in:
parent
086e56205c
commit
b8b60ea0c9
|
@ -85,13 +85,8 @@ def test_alias_fallback(self):
|
||||||
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(
|
||||||
|
|
Loading…
Reference in New Issue