diff options
author | Brian Curtin <brian.curtin@gmail.com> | 2010-12-29 02:41:07 (GMT) |
---|---|---|
committer | Brian Curtin <brian.curtin@gmail.com> | 2010-12-29 02:41:07 (GMT) |
commit | 7ef28e8bd7a2557ea9194c5abb5e6007ef559d9d (patch) | |
tree | 6d332fa1d2f38ca6a46180198263f5e7fcf14e76 /Lib/test/test_winsound.py | |
parent | 57160d72047c51f7bbe5fe4dc168f8b2f508b174 (diff) | |
download | cpython-7ef28e8bd7a2557ea9194c5abb5e6007ef559d9d.zip cpython-7ef28e8bd7a2557ea9194c5abb5e6007ef559d9d.tar.gz cpython-7ef28e8bd7a2557ea9194c5abb5e6007ef559d9d.tar.bz2 |
Close stdout, clear ResourceWarning
Diffstat (limited to 'Lib/test/test_winsound.py')
-rw-r--r-- | Lib/test/test_winsound.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_winsound.py b/Lib/test/test_winsound.py index be0e625..34c3dea 100644 --- a/Lib/test/test_winsound.py +++ b/Lib/test/test_winsound.py @@ -249,6 +249,7 @@ def _have_soundcard(): p = subprocess.Popen([cscript_path, check_script], stdout=subprocess.PIPE) __have_soundcard_cache = not p.wait() + p.stdout.close() return __have_soundcard_cache |