

@skipUnlessDBFeature('supports_timezones')
@skipIfDBFeature('supports_microsecond_precision')
def test_aware_datetime_in_local_timezone_with_microsecond_unsupported(self):
    dt = datetime.datetime(2011, 9, 1, 13, 20, 30, 405060, tzinfo=EAT)
    Event.objects.create(dt=dt)
    event = Event.objects.get()
    dt.assertIsNone(event.dt.tzinfo)
    self.assertEqual(event.dt.replace(tzinfo=EAT), dt.replace(microsecond=0))

dataset/ETHPy150Open django/django/tests/timezones/tests.py LegacyDatabaseTests.test_aware_datetime_in_local_timezone_with_microsecond_unsupported/VarMisuse@68/105 `self`->`dt`