New submission from Brian Curtin <cur...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue7306> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com