summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorOndřej Čertík <ondrej.certik@gmail.com>2013-03-25 08:22:57 -0700
committerOndřej Čertík <ondrej.certik@gmail.com>2013-03-25 08:22:57 -0700
commit1a816c79f7212102634c28e0896547671d347a60 (patch)
tree0d51ad33ed75d660ceff608a5ec941c450f83348 /numpy
parentc96c69bf2c133c9c68480e3cb532693fb942c051 (diff)
parentdf813e52675cf873d4b82347b53ed8eda5c6cc06 (diff)
downloadnumpy-1a816c79f7212102634c28e0896547671d347a60.tar.gz
Merge pull request #3167 from certik/forwardport3165
TST: open the TemporaryFile in ASCII mode
Diffstat (limited to 'numpy')
-rw-r--r--numpy/distutils/tests/test_exec_command.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/tests/test_exec_command.py b/numpy/distutils/tests/test_exec_command.py
index d23a4485a..d38c096ba 100644
--- a/numpy/distutils/tests/test_exec_command.py
+++ b/numpy/distutils/tests/test_exec_command.py
@@ -69,7 +69,7 @@ def test_exec_command_stdout():
def test_exec_command_stderr():
# Test posix version:
- with redirect_stdout(TemporaryFile()):
+ with redirect_stdout(TemporaryFile(mode='w+')):
with redirect_stderr(StringIO.StringIO()):
exec_command.exec_command("cd '.'")