Author: mattip <matti.pi...@gmail.com>
Branch: win32-fixes5
Changeset: r73725:c70817364854
Date: 2014-09-27 21:20 +0300
http://bitbucket.org/pypy/pypy/changeset/c70817364854/

Log:    os.tmpfile fails for non-admin on win32

diff --git a/rpython/translator/tool/stdoutcapture.py 
b/rpython/translator/tool/stdoutcapture.py
--- a/rpython/translator/tool/stdoutcapture.py
+++ b/rpython/translator/tool/stdoutcapture.py
@@ -9,7 +9,8 @@
     
     def __init__(self, mixed_out_err = False):
         "Start capture of the Unix-level stdout and stderr."
-        if (not hasattr(os, 'tmpfile') or
+        if (sys.platform == 'win32' or # os.tmpfile fails, cpython issue #2232
+            not hasattr(os, 'tmpfile') or
             not hasattr(os, 'dup') or
             not hasattr(os, 'dup2') or
             not hasattr(os, 'fdopen')):
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to