          deactivate()
          self.assertUTC(self.field.default_timezone())
  
  
  @pytest.mark.skipif(pytz is None, reason='pytz not installed')
  @override_settings(TIME_ZONE='UTC', USE_TZ=True)
  class TestCustomTimezoneForDateTimeField(TestCase):
  
      @classmethod
      def setup_class(cls):
 
</s> remove         cls.kolkata = pytz.timezone('Asia/Kolkata')
 </s> add         cls.kolkata = ZoneInfo('Asia/Kolkata') </s> remove class TestNaiveDayLightSavingTimeTimeZoneDateTimeField(FieldValues):
 </s> add @pytest.mark.skipif(pytz is None, reason="As Django 4.0 has deprecated pytz, this test should eventually be able to get removed.")
class TestPytzNaiveDayLightSavingTimeTimeZoneDateTimeField(FieldValues): </s> remove         cls.kolkata = pytz.timezone('Asia/Kolkata')
 </s> add         cls.kolkata = ZoneInfo('Asia/Kolkata') </s> remove         kolkata = pytz.timezone('Asia/Kolkata')
 </s> add         kolkata = ZoneInfo('Asia/Kolkata') </s> remove                 return timezone.make_aware(value, field_timezone)
 </s> add                 dt = timezone.make_aware(value, field_timezone)
                # When the resulting datetime is a ZoneInfo instance, it won't necessarily
                # throw given an invalid datetime, so we need to specifically check.
                if not valid_datetime(dt):
                    self.fail('make_aware', timezone=field_timezone)
                return dt
          deactivate()
          self.assertUTC(self.field.default_timezone())
  
  

  @override_settings(TIME_ZONE='UTC', USE_TZ=True)
  class TestCustomTimezoneForDateTimeField(TestCase):
  
      @classmethod
      def setup_class(cls):
keep keep keep keep replace keep keep keep keep keep
 Use ZoneInfo as primary source of timezone data (#8924)

* Use ZoneInfo as primary source of timezone data

* Update tests/test_fields.py

---------

Co-authored-by: Asif Saif Uddin <auvipy@gmail.com> 
tests/test_fields.py