Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
04a684b2
Commit
04a684b2
authored
Nov 27, 2013
by
Zachary Ware
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #19595: Re-enable a long-disabled test in test_winsound
parent
889d24ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
12 deletions
+10
-12
Lib/test/test_winsound.py
Lib/test/test_winsound.py
+8
-12
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/test/test_winsound.py
View file @
04a684b2
...
...
@@ -158,18 +158,14 @@ class PlaySoundTest(unittest.TestCase):
)
def
test_alias_fallback
(
self
):
# This test can't be expected to work on all systems. The MS
# PlaySound() docs say:
#
# If it cannot find the specified sound, PlaySound uses the
# default system event sound entry instead. If the function
# can find neither the system default entry nor the default
# sound, it makes no sound and returns FALSE.
#
# It's known to return FALSE on some real systems.
# winsound.PlaySound('!"$%&/(#+*', winsound.SND_ALIAS)
return
if
_have_soundcard
():
winsound
.
PlaySound
(
'!"$%&/(#+*'
,
winsound
.
SND_ALIAS
)
else
:
self
.
assertRaises
(
RuntimeError
,
winsound
.
PlaySound
,
'!"$%&/(#+*'
,
winsound
.
SND_ALIAS
)
def
test_alias_nofallback
(
self
):
if
_have_soundcard
():
...
...
Misc/NEWS
View file @
04a684b2
...
...
@@ -70,6 +70,8 @@ Library
Tests
-----
-
Issue
#
19595
:
Re
-
enabled
a
long
-
disabled
test
in
test_winsound
.
-
Issue
#
19588
:
Fixed
tests
in
test_random
that
were
silently
skipped
most
of
the
time
.
Patch
by
Julian
Gindi
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment