summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorOndrej Certik <ondrej.certik@gmail.com>2013-03-25 10:54:22 +0100
committerOndrej Certik <ondrej.certik@gmail.com>2013-03-25 15:06:28 +0100
commitdf813e52675cf873d4b82347b53ed8eda5c6cc06 (patch)
tree0d51ad33ed75d660ceff608a5ec941c450f83348 /numpy
parentc96c69bf2c133c9c68480e3cb532693fb942c051 (diff)
downloadnumpy-df813e52675cf873d4b82347b53ed8eda5c6cc06.tar.gz
TST: open the TemporaryFile in ASCII mode
This should fix gh-3165. Conflicts: numpy/distutils/tests/test_exec_command.py
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 '.'")