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
0e76e672
Commit
0e76e672
authored
Sep 05, 2016
by
Zachary Ware
Browse files
Options
Browse Files
Download
Plain Diff
Closes #27748: Merge with 3.5
parents
c7d1cf4d
b3b7a5a1
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
203 deletions
+62
-203
Lib/test/check_soundcard.vbs
Lib/test/check_soundcard.vbs
+0
-13
Lib/test/test_winsound.py
Lib/test/test_winsound.py
+62
-190
No files found.
Lib/test/check_soundcard.vbs
deleted
100644 → 0
View file @
c7d1cf4d
rem Check for a working sound-card - exit with 0 if OK, 1 otherwise.
set
wmi
=
GetObject
(
"winmgmts:"
)
set
scs
=
wmi
.
InstancesOf
(
"win32_sounddevice"
)
for
each
sc
in
scs
set
status
=
sc
.
Properties_
(
"Status"
)
wscript
.
Echo
(
sc
.
Properties_
(
"Name"
)
+
"/"
+
status
)
if
status
=
"OK"
then
wscript
.
Quit
0
rem normal exit
end
if
next
rem No sound card found - exit with status code of 1
wscript
.
Quit
1
Lib/test/test_winsound.py
View file @
0e76e672
This diff is collapsed.
Click to expand it.
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