mirror of https://github.com/python/cpython
Issue #19595: Re-enable a long-disabled test in test_winsound
This commit is contained in:
parent
889d24ee3a
commit
04a684b2f2
|
@ -158,18 +158,14 @@ class PlaySoundTest(unittest.TestCase):
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_alias_fallback(self):
|
def test_alias_fallback(self):
|
||||||
# This test can't be expected to work on all systems. The MS
|
if _have_soundcard():
|
||||||
# PlaySound() docs say:
|
winsound.PlaySound('!"$%&/(#+*', winsound.SND_ALIAS)
|
||||||
#
|
else:
|
||||||
# If it cannot find the specified sound, PlaySound uses the
|
self.assertRaises(
|
||||||
# default system event sound entry instead. If the function
|
RuntimeError,
|
||||||
# can find neither the system default entry nor the default
|
winsound.PlaySound,
|
||||||
# sound, it makes no sound and returns FALSE.
|
'!"$%&/(#+*', winsound.SND_ALIAS
|
||||||
#
|
)
|
||||||
# It's known to return FALSE on some real systems.
|
|
||||||
|
|
||||||
# winsound.PlaySound('!"$%&/(#+*', winsound.SND_ALIAS)
|
|
||||||
return
|
|
||||||
|
|
||||||
def test_alias_nofallback(self):
|
def test_alias_nofallback(self):
|
||||||
if _have_soundcard():
|
if _have_soundcard():
|
||||||
|
|
|
@ -70,6 +70,8 @@ Library
|
||||||
Tests
|
Tests
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
- Issue #19595: Re-enabled a long-disabled test in test_winsound.
|
||||||
|
|
||||||
- Issue #19588: Fixed tests in test_random that were silently skipped most
|
- Issue #19588: Fixed tests in test_random that were silently skipped most
|
||||||
of the time. Patch by Julian Gindi.
|
of the time. Patch by Julian Gindi.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue