This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_winsound fails when no playback devices configured
Type: behavior Stage: resolved
Components: Tests, Windows Versions: Python 3.1, Python 3.2, Python 2.7, Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: brian.curtin Nosy List: brian.curtin
Priority: normal Keywords: patch

Created on 2010-05-05 00:23 by brian.curtin, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
issue8618.diff brian.curtin, 2010-05-09 04:31 patch against trunk
Messages (7)
msg104988 - (view) Author: Brian Curtin (brian.curtin) * (Python committer) Date: 2010-05-05 00:23
Some of the test_alias_* functions in test_winsound are failing with a RuntimeError "Failed to play sound" when run on Server 2008 R2. 

The sound from each test exists in the registry so the test doesn't end up getting skipped. I'm guessing there is some missing privilege, so it's possible we should additionally skip based on that.
msg105371 - (view) Author: Brian Curtin (brian.curtin) * (Python committer) Date: 2010-05-09 04:07
Seems like this happens because there is no playback device installed. Apparently there are audio drivers install but no playback device is configured to use them.

I'm looking for a command line tool or some other way to find out details of playback devices and I'll skip the failing tests based on that.
msg105372 - (view) Author: Brian Curtin (brian.curtin) * (Python committer) Date: 2010-05-09 04:31
Attached is a patch which uses the multimedia mixer API to find out how many devices are known by the mixer. If none are known, 0 will be returned, and thus tests will be skipped.
msg106836 - (view) Author: Brian Curtin (brian.curtin) * (Python committer) Date: 2010-06-01 13:54
Committed in r81640 through r81643
msg124819 - (view) Author: Brian Curtin (brian.curtin) * (Python committer) Date: 2010-12-28 21:31
Looks like this might be an issue with the Windows Server 2008 build slave. I restarted it last night and a bunch of builds after that have failed due to this test.
msg124843 - (view) Author: Brian Curtin (brian.curtin) * (Python committer) Date: 2010-12-29 04:30
This isn't failing in manual runs of regrtest -uall on that machine.
msg124871 - (view) Author: Brian Curtin (brian.curtin) * (Python committer) Date: 2010-12-29 19:55
Looks like whatever caused this is now gone.
History
Date User Action Args
2022-04-11 14:57:00adminsetgithub: 52864
2010-12-29 19:55:17brian.curtinsetstatus: pending -> closed

messages: + msg124871
resolution: fixed
stage: resolved
2010-12-29 04:30:59brian.curtinsetstatus: open -> pending

messages: + msg124843
2010-12-28 21:31:02brian.curtinsetstatus: closed -> open

messages: + msg124819
resolution: fixed -> (no value)
stage: resolved -> (no value)
2010-06-01 13:54:03brian.curtinsetstatus: open -> closed
resolution: fixed
messages: + msg106836

stage: needs patch -> resolved
2010-05-10 14:40:45brian.curtinsettitle: test_winsound failing on Windows Server 2008 -> test_winsound fails when no playback devices configured
2010-05-09 04:31:14brian.curtinsetfiles: + issue8618.diff
keywords: + patch
messages: + msg105372
2010-05-09 04:07:14brian.curtinsetmessages: + msg105371
2010-05-05 00:23:19brian.curtincreate