mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #19987: disable test_winsound's test_alias_fallback test when no sound card
is available. The test fails on Windows Server 2008.
This commit is contained in:
parent
d9fbb446a2
commit
e9dacaa93f
1 changed files with 7 additions and 6 deletions
|
@ -160,12 +160,13 @@ class PlaySoundTest(unittest.TestCase):
|
|||
def test_alias_fallback(self):
|
||||
if _have_soundcard():
|
||||
winsound.PlaySound('!"$%&/(#+*', winsound.SND_ALIAS)
|
||||
else:
|
||||
self.assertRaises(
|
||||
RuntimeError,
|
||||
winsound.PlaySound,
|
||||
'!"$%&/(#+*', winsound.SND_ALIAS
|
||||
)
|
||||
# see http://bugs.python.org/issue19987
|
||||
#else:
|
||||
# self.assertRaises(
|
||||
# RuntimeError,
|
||||
# winsound.PlaySound,
|
||||
# '!"$%&/(#+*', winsound.SND_ALIAS
|
||||
# )
|
||||
|
||||
def test_alias_nofallback(self):
|
||||
if _have_soundcard():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue