summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
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 '.'")