diff --git a/Lib/test/test_winsound.py b/Lib/test/test_winsound.py index be0e6256292..34c3deaf7eb 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