diff options
author | Ondrej Certik <ondrej.certik@gmail.com> | 2013-03-25 10:54:22 +0100 |
---|---|---|
committer | Ondrej Certik <ondrej.certik@gmail.com> | 2013-03-25 15:06:28 +0100 |
commit | df813e52675cf873d4b82347b53ed8eda5c6cc06 (patch) | |
tree | 0d51ad33ed75d660ceff608a5ec941c450f83348 /numpy | |
parent | c96c69bf2c133c9c68480e3cb532693fb942c051 (diff) | |
download | numpy-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.py | 2 |
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 '.'") |