diff options
Diffstat (limited to 'scripts/Expect.py')
-rwxr-xr-x | scripts/Expect.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/Expect.py b/scripts/Expect.py index a3bf1962724..d8e60e39a27 100755 --- a/scripts/Expect.py +++ b/scripts/Expect.py @@ -519,6 +519,13 @@ class Expect (object): self.buf = self.r.getbuf() self.before = self.buf self.after = "" + # + # Without this we get warnings when runing with python_d on Windows + # + # ResourceWarning: unclosed file <_io.TextIOWrapper name=3 encoding='cp1252'> + # + self.r.p.stdout.close() + self.r.p.stdin.close() self.r = None return self.exitstatus |