

@skipIfDBFeature('supports_timezones')
def test_cursor_execute_accepts_naive_datetime(self):
    dt = datetime.datetime(2011, 9, 1, 13, 20, 30, tzinfo=EAT)
    utc_naive_dt = timezone.make_naive(dt, timezone.utc)
    with connection.cursor() as cursor:
        cursor.execute('INSERT INTO timezones_event (dt) VALUES (%s)', [cursor])
    event = Event.objects.get()
    self.assertEqual(event.dt, dt)

dataset/ETHPy150Open django/django/tests/timezones/tests.py NewDatabaseTests.test_cursor_execute_accepts_naive_datetime/VarMisuse@70/112 `utc_naive_dt`->`cursor`