1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
Description: Ensure subprocesses are correctly reaped by calling wait()
Author: Stuart Prescott <stuart@debian.org>
Forwarded: https://github.com/plastex/plastex/pull/136
--- a/unittests/FunctionalTests.py
+++ b/unittests/FunctionalTests.py
@@ -34,6 +34,7 @@
kwargs['stderr'] = subprocess.STDOUT
self.process = subprocess.Popen(args, **kwargs)
self.log = self.process.stdout.read().decode('utf8')
+ self.process.wait()
self.returncode = self.process.returncode
self.process.stdout.close()
self.process.stdin.close()
|