importsysifsys.version_info[:2]>=(2,5):fromtests._testwithimport*else:fromtests.supportimportunittest2classTestWith(unittest2.TestCase):@unittest2.skip('tests using with statement skipped on Python 2.4')deftestWith(self):passif__name__=='__main__':unittest2.main()