qpid-proton git commit: PROTON-1503: Fix Python test code tempfile creation

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

qpid-proton git commit: PROTON-1503: Fix Python test code tempfile creation

astitcher
Repository: qpid-proton
Updated Branches:
  refs/heads/master 662957df6 -> 48e75e304


PROTON-1503: Fix Python test code tempfile creation


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/48e75e30
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/48e75e30
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/48e75e30

Branch: refs/heads/master
Commit: 48e75e3045ba07b86912d641c8468e078bf414fe
Parents: 662957d
Author: Andrew Stitcher <[hidden email]>
Authored: Thu Jun 15 13:42:40 2017 -0400
Committer: Andrew Stitcher <[hidden email]>
Committed: Thu Jun 15 13:42:40 2017 -0400

----------------------------------------------------------------------
 tools/py/proctest.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/48e75e30/tools/py/proctest.py
----------------------------------------------------------------------
diff --git a/tools/py/proctest.py b/tools/py/proctest.py
index ba83c7d..047dc44 100644
--- a/tools/py/proctest.py
+++ b/tools/py/proctest.py
@@ -24,7 +24,7 @@ valgrind.
 """
 
 import unittest
-import os, sys, socket, time, re, inspect, errno, threading
+import os, sys, socket, time, re, inspect, errno, threading, tempfile
 from  random import randrange
 from subprocess import Popen, PIPE, STDOUT
 from copy import copy
@@ -93,7 +93,7 @@ class Proc(Popen):
         else:
             self.args = self.vg_args + args
         self.kwargs = kwargs
-        self._out = os.tmpfile()
+        self._out = tempfile.TemporaryFile()
         try:
             Popen.__init__(self, self.args, stdout=self._out, stderr=STDOUT, **kwargs)
         except OSError, e:


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]