Use `unittest.TextTestRunner` in place of `unittest.runner.TextTestRunner` for 2.6 compatibility
Add `from __future__ import with_statement` for 2.5 compatibility