Antoine Pitrou
920e7e9ffc
Merged revisions 83927 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r83927 | antoine.pitrou | 2010-08-10 02:45:32 +0200 (mar., 10 août 2010) | 3 lines
test_winsound shouldn't crash when ctypes isn't available
........
2010-08-10 00:47:48 +00:00
Brian Curtin
824912eb30
Fix #8618 . Ask the Windows mixer API if there are any playback devices
...
configured before attempting to test PlaySound.
2010-06-01 13:29:13 +00:00
Mark Dickinson
2c4798b1fd
In test_winsound, don't try to import _winreg until after checking that winsound is supported.
2010-04-13 11:37:23 +00:00
Brian Curtin
d5c50b32aa
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:25:20 +00:00
Stefan Krah
9aca91d7d7
Issue #8367 : Fix spurious test failure on systems without a sound card.
2010-04-12 15:21:25 +00:00
R. David Murray
59beec326a
Add import_function method to test.test_support, and modify a number of
...
tests that expect to be skipped if imports fail or functions don't
exist to use import_function and import_module. The ultimate goal is
to change regrtest to not skip automatically on ImportError. Checking
in now to make sure the buldbots don't show any errors on platforms
I can't direct test on.
2009-03-30 19:04:00 +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