TST: open the TemporaryFile in ASCII mode

This should fix gh-3165.

Conflicts:
	numpy/distutils/tests/test_exec_command.py