@classmethod
    def setUpClass(cls):
        cls.old_TZ = os.environ.get('TZ')
        os.environ['TZ'] = 'US/Eastern'

        try:
            # Check if a timezone has been set
            time.tzset()
            cls.tz_tests = True
        except __HOLE__:
            # No timezone available. Don't run the tests that require a TZ
            cls.tz_tests = False
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/regressiontests/utils/tzinfo.py/TzinfoTests.setUpClass