]> granicus.if.org Git - python/commitdiff
Close stdout, clear ResourceWarning
authorBrian Curtin <brian.curtin@gmail.com>
Wed, 29 Dec 2010 02:41:07 +0000 (02:41 +0000)
committerBrian Curtin <brian.curtin@gmail.com>
Wed, 29 Dec 2010 02:41:07 +0000 (02:41 +0000)
Lib/test/test_winsound.py

index be0e6256292479d46d367b66d40610f494454d90..34c3deaf7eb3c0c21c7d3a25f83b166c5e0b0f47 100644 (file)
@@ -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