summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-12-29 02:41:07 (GMT)
committerBrian Curtin <brian.curtin@gmail.com>2010-12-29 02:41:07 (GMT)
commit7ef28e8bd7a2557ea9194c5abb5e6007ef559d9d (patch)
tree6d332fa1d2f38ca6a46180198263f5e7fcf14e76 /Lib/test
parent57160d72047c51f7bbe5fe4dc168f8b2f508b174 (diff)
downloadcpython-7ef28e8bd7a2557ea9194c5abb5e6007ef559d9d.zip
cpython-7ef28e8bd7a2557ea9194c5abb5e6007ef559d9d.tar.gz
cpython-7ef28e8bd7a2557ea9194c5abb5e6007ef559d9d.tar.bz2
Close stdout, clear ResourceWarning
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_winsound.py1
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