Leak less files during test.
Leak less files during test.

Tracks all created files and destroy them all during teardown.
Otherwise multiple call to mktmp would leak previously unclosed files.

This should really ideally be a context manager and be tracked better.

ipython/ipython,ipython/ipython