[pypy-commit] pypy win32-fixes5: os.tmpfile fails for non-admin on win32
mattip
noreply at buildbot.pypy.org
Sat Sep 27 23:14:34 CEST 2014
Author: mattip <matti.picus at 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')):
More information about the pypy-commit
mailing list