diff options
author | Jose <jose@zeroc.com> | 2017-03-27 16:27:21 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2017-03-27 16:27:21 +0200 |
commit | cd453e40bff9a4f19c64a528f07427e3c61cd17a (patch) | |
tree | 60d9e76d6768ebc584b5c9637dada16489740eb4 /scripts/Expect.py | |
parent | Fix ICE-7679 - Python Application.NoSignalHandling not honor by Ice.Application (diff) | |
download | ice-cd453e40bff9a4f19c64a528f07427e3c61cd17a.tar.bz2 ice-cd453e40bff9a4f19c64a528f07427e3c61cd17a.tar.xz ice-cd453e40bff9a4f19c64a528f07427e3c61cd17a.zip |
Fixed (ICE-6996) - Python tests warnings when running with python_d debug interpreter on Windows
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 |