BUG: avoid NamedTemporaryFile for large file test

NamedTemporaryFile files can't be reopened on Windows.