

@skipIfDBFeature('supports_timezones')
def test_cursor_execute_returns_naive_datetime(self):
    dt = datetime.datetime(2011, 9, 1, 13, 20, 30, tzinfo=EAT)
    utc_naive_dt = timezone.make_naive(utc_naive_dt, timezone.utc)
    Event.objects.create(dt=dt)
    with connection.cursor() as cursor:
        cursor.execute('SELECT dt FROM timezones_event WHERE dt = %s', [utc_naive_dt])
        self.assertEqual(cursor.fetchall()[0][0], utc_naive_dt)

dataset/ETHPy150Open django/django/tests/timezones/tests.py NewDatabaseTests.test_cursor_execute_returns_naive_datetime/VarMisuse@45/67 `dt`->`utc_naive_dt`