summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2012-12-04 17:26:18 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2012-12-04 17:26:18 +0100
commit826ae5a27f34de849e4138dcf094dd6631863eca (patch)
treed145d23c7fc494ac937f0fe26073a5264293b169
parent6a570e624e2411ccaf69be7217b1ee961af383f7 (diff)
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.
-rw-r--r--kconfigtest.py2
1 files changed, 1 insertions, 1 deletions
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