Close stdout, clear ResourceWarning
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 @@
         p = subprocess.Popen([cscript_path, check_script],
                              stdout=subprocess.PIPE)
         __have_soundcard_cache = not p.wait()
+        p.stdout.close()
     return __have_soundcard_cache