From 7ef28e8bd7a2557ea9194c5abb5e6007ef559d9d Mon Sep 17 00:00:00 2001 From: Brian Curtin Date: Wed, 29 Dec 2010 02:41:07 +0000 Subject: Close stdout, clear ResourceWarning --- Lib/test/test_winsound.py | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v0.12