[New-bugs-announce] [issue27748] Simplify test_winsound

Zachary Ware report at bugs.python.org
Fri Aug 12 13:12:36 EDT 2016


New submission from Zachary Ware:

test_winsound is rather annoying.  It currently attempts to determine whether a sound card is present, and whether particular system sounds are available.  These checks are fragile at best, and I routinely see failures that shouldn't be.  In particular, if I have an open RDP session to my ware-win81-release buildbot, test_winsound fails because it thinks the sounds should fail to play, but instead they succeed.

Rather than attempt to make the checks more robust, I suggest that we instead rip out the checks and simply ensure that each call that might succeed either returns normally or raises RuntimeError.  After all, we can't actually test whether a sound really played or not.

----------
assignee: zach.ware
components: Tests, Windows
files: simplify_test_winsound.diff
keywords: patch
messages: 272546
nosy: paul.moore, steve.dower, tim.golden, zach.ware
priority: low
severity: normal
stage: patch review
status: open
title: Simplify test_winsound
type: behavior
versions: Python 2.7, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file44089/simplify_test_winsound.diff

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


More information about the New-bugs-announce mailing list