TST: open the TemporaryFile in ASCII mode

This should fix gh-3165.

Conflicts:
	numpy/distutils/tests/test_exec_command.py
Merge pull request #3167 from certik/forwardport3165

TST: open the TemporaryFile in ASCII mode