File: test-popen-warning.patch

package info (click to toggle)
plastex 2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,740 kB
  • sloc: python: 20,923; xml: 18,043; ansic: 46; makefile: 34; sh: 23
file content (14 lines) | stat: -rw-r--r-- 582 bytes parent folder | download | duplicates (2)
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()