summaryrefslogtreecommitdiff
path: root/scripts/Expect.py
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2017-03-27 16:27:21 +0200
committerJose <jose@zeroc.com>2017-03-27 16:27:21 +0200
commitcd453e40bff9a4f19c64a528f07427e3c61cd17a (patch)
tree60d9e76d6768ebc584b5c9637dada16489740eb4 /scripts/Expect.py
parentFix ICE-7679 - Python Application.NoSignalHandling not honor by Ice.Application (diff)
downloadice-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-xscripts/Expect.py7
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