ENH: close open file in a test
Merge commit '0.8.8-312-g7a6eecb' into 0.9

* commit '0.8.8-312-g7a6eecb':
  ENH: close open file in a test