Victor Stinner
342e0fd80b
(I hope) last try to fix test_winsound (skip tests)
...
Remove print, it produces "unexpected output" and the test fails :-/
2010-04-19 16:03:48 +00:00
Victor Stinner
b2a28c3bd5
test_winsound: new try to skip the tests. In Python 2.6, TestSkipped is used to
...
skip the whole file, not a particular function.
2010-04-19 15:18:07 +00:00
Victor Stinner
b46d7ba12f
Fix r80029 (backport of r80026), test_winsound: Python 2.6 has no
...
unittest.skipUnless(). Use raise test_support.TestSkipped() instead.
2010-04-19 12:14:14 +00:00
Brian Curtin
56da87c914
Merged revisions 80026 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80026 | brian.curtin | 2010-04-12 21:25:20 -0500 (Mon, 12 Apr 2010) | 4 lines
Fix #7306 . Add skips to test_winsound when no default sound is configured.
These failures occur on a Windows Server 2003 machine I test on.
........
2010-04-13 02:39:59 +00:00
Stefan Krah
833c7a379f
Merged revisions 80000 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80000 | stefan.krah | 2010-04-12 17:21:25 +0200 (Mon, 12 Apr 2010) | 3 lines
Issue #8367 : Fix spurious test failure on systems without a sound card.
........
2010-04-12 15:29:47 +00:00
Steven Bethard
8906575380
_have_soundcard() is a bad check for winsound.Beep, since you can have a soundcard but have the beep driver disabled. This revision basically disables the beep tests by wrapping them in a try/except. The Right Way To Do It is to come up with a _have_enabled_beep_driver() and use that.
2008-03-18 19:04:32 +00:00
Trent Nelson
496ad27186
The behaviour of winsound.Beep() seems to differ between different versions of Windows when there's either:
...
a) no sound card entirely
b) legacy beep driver has been disabled
c) the legacy beep driver has been uninstalled
Sometimes RuntimeErrors are raised, sometimes they're not. If _have_soundcard() returns False, don't expect winsound.Beep() to raise a RuntimeError, as this clearly isn't the case, as demonstrated by the various Win32 XP buildbots.
2008-03-18 07:32:47 +00:00
Neal Norwitz
218072595e
Get this test to pass even when there is no sound card in the system.
...
Patch from Trent Nelson. (I can't test this.)
2008-03-05 05:14:18 +00:00
Trent Mick
f8cf13eeb7
Update test_winsound to check for a configured sound card (using a VBScript
...
helper written by Roger Upole and Mark Hammond) and adjust the expected
PlaySoundTest case results accordingly.
2006-03-16 17:34:41 +00:00
Tim Peters
ad9a7c4489
test_alias_nofallback(): Someone broke this test, after 2.3, by
...
converting it into assertRaises() form. Restored the 2.3 code, and
explained why assertRaises() cannot be used instead.
2004-05-16 05:36:30 +00:00
Tim Peters
b8b60ea0c9
PlaySoundTest.test_alias_nofallback(): Simplified the coding by using
...
assertRaises.
NOT a bugfix candidate.
2003-09-22 18:41:53 +00:00
Tim Peters
086e56205c
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.
2003-09-22 18:38:53 +00:00
Walter Dörwald
8bcbe6aa7e
Don't require that a RuntimeError is raised when playing a second
...
sound while the first one is still running, as the first one
one might already have finished.
Fixes part of SF bug #763052 .
2003-06-30 11:57:52 +00:00
Walter Dörwald
7fd9424230
Port test_array and test_winsound to PyUnit. Enhance tests for array
...
(code coverage for Modules/arraymodule.c is at 91%)
From SF patch #736962 .
2003-05-18 00:47:47 +00:00
Guido van Rossum
11d204ca27
Add test for MessageBeep()
2003-04-09 19:57:06 +00:00
Fred Drake
004d5e6880
Make reindent.py happy (convert everything to 4-space indents!).
2000-10-23 17:22:08 +00:00
Guido van Rossum
2512d6d83a
Fix spelling error and remove Windows line endings.
2000-04-24 14:01:51 +00:00
Guido van Rossum
cdd092fe48
Added test_winsound by Mark Hammond.
2000-04-21 21:28:47 +00:00