An overridden run() remembers the test result and adds a cleanup function that deletes tempfiles if the tests passed. A global tearDownModule() will print out any remaining temp files (only when running a single test_ file at the moment).