summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2003-09-22 18:38:53 (GMT)
committerTim Peters <tim.peters@gmail.com>2003-09-22 18:38:53 (GMT)
commit086e56205c5b9b172cae5be16ebf09116173c3d9 (patch)
tree2d09fa976289ae1a989158508a7d47dfeeba2052
parent92016dcc912e9c44a9d34ac49994ac576084349c (diff)
downloadcpython-086e56205c5b9b172cae5be16ebf09116173c3d9.zip
cpython-086e56205c5b9b172cae5be16ebf09116173c3d9.tar.gz
cpython-086e56205c5b9b172cae5be16ebf09116173c3d9.tar.bz2
PlaySoundTest.test_alias_fallback(): Disabled this test, and explained
why in a new comment. My home Win98SE box is one of the "real systems" alluded to (my system "default sound" appears to have vanished sometime in the last month, that's certainly not a Python bug, and the MS PlaySound docs are correct in their explanation of what happens then). Bugfix candidate. If someone can still sneak it into 2.3.1, that would be good.
-rw-r--r--Lib/test/test_winsound.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/Lib/test/test_winsound.py b/Lib/test/test_winsound.py
index 7e14599..abe6727 100644
--- a/Lib/test/test_winsound.py
+++ b/Lib/test/test_winsound.py
@@ -71,7 +71,18 @@ class PlaySoundTest(unittest.TestCase):
winsound.PlaySound('SystemQuestion', winsound.SND_ALIAS)
def test_alias_fallback(self):
- winsound.PlaySound('!"$%&/(#+*', winsound.SND_ALIAS)
+ # This test can't be expected to work on all systems. The MS
+ # PlaySound() docs say:
+ #
+ # If it cannot find the specified sound, PlaySound uses the
+ # default system event sound entry instead. If the function
+ # can find neither the system default entry nor the default
+ # sound, it makes no sound and returns FALSE.
+ #
+ # It's known to return FALSE on some real systems.
+
+ # winsound.PlaySound('!"$%&/(#+*', winsound.SND_ALIAS)
+ return
def test_alias_nofallback(self):
try: