

def test_time_zone_parameter_not_supported_if_database_supports_timezone(self):
    connections.databases['tz'] = connections.databases['default'].copy()
    connections.databases['tz']['TIME_ZONE'] = 'Asia/Bangkok'
    tz_conn = connections['tz']
    try:
        with self.assertRaises(ImproperlyConfigured):
            tz_conn.cursor()
    finally:
        connections['tz'].close()
        del connections['tz']
        del connections.databases['tz']

dataset/ETHPy150Open django/django/tests/timezones/tests.py UnsupportedTimeZoneDatabaseTests.test_time_zone_parameter_not_supported_if_database_supports_timezone/original