From: Brian Curtin Date: Wed, 29 Dec 2010 02:41:07 +0000 (+0000) Subject: Close stdout, clear ResourceWarning X-Git-Tag: v3.2rc1~288 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ef28e8bd7a2557ea9194c5abb5e6007ef559d9d;p=python Close stdout, clear ResourceWarning --- diff --git a/Lib/test/test_winsound.py b/Lib/test/test_winsound.py index be0e625629..34c3deaf7e 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