This is very cute, but we support Python 2.4, so all tests must pass there. No `with` statement, no `@contextmanager`.