[New-bugs-announce] [issue7306] Patch - skip winsound tests if no default sound is configured

Brian Curtin report at bugs.python.org
Wed Nov 11 16:38:05 CET 2009


New submission from Brian Curtin <curtin at acm.org>:

I noticed test failures on trunk for test_winsound on only one of my
boxes. Everything works fine on XP, but PlaySoundTest test methods fail
on Windows Server 2003.

It appears that on WS2k3 there are no default system sounds configured.
For example, view the difference of the following registry key on an XP
and Server machine:
HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\SystemExit\.Default.

The patch includes a function to figure out if a WAV file is associated
with a particular sound, and unittest.skipIf is used to decorate some
methods to skip if they don't have a configured sound.

----------
components: Tests, Windows
files: winsound_test_skipping.patch
keywords: patch
messages: 95140
nosy: brian.curtin
severity: normal
status: open
title: Patch - skip winsound tests if no default sound is configured
type: behavior
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1
Added file: http://bugs.python.org/file15308/winsound_test_skipping.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7306>
_______________________________________


More information about the New-bugs-announce mailing list