From 826ae5a27f34de849e4138dcf094dd6631863eca Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Tue, 4 Dec 2012 17:26:18 +0100 Subject: Use communicate() instead of wait() with Popen. No good reason not to do this, and it prevents a problem where the test suite will open too many file descriptors with PyPy. --- kconfigtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kconfigtest.py') diff --git a/kconfigtest.py b/kconfigtest.py index 0c994fc..f3154c0 100644 --- a/kconfigtest.py +++ b/kconfigtest.py @@ -445,7 +445,7 @@ def shell(cmd): subprocess.Popen(cmd, shell = True, stdout = subprocess.PIPE, - stderr = subprocess.PIPE).wait() + stderr = subprocess.PIPE).communicate() def rm_configs(): """Delete any old ".config" (generated by the C implementation) and -- cgit v1.2.3