  
      @classmethod
      def setup_class(cls):
          cls.field = serializers.DateTimeField()
          cls.kolkata = pytz.timezone('Asia/Kolkata')
  
      def assertUTC(self, tzinfo):
          """
          Check UTC for datetime.timezone, ZoneInfo, and pytz tzinfo instances.
          """
 
</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 @pytest.mark.skipif(pytz is None, reason='pytz not installed')
 </s> add  </s> remove     def test_valid_inputs(self):
 </s> add     def test_valid_inputs(self, *args): </s> remove     def test_invalid_inputs(self):
 </s> add     def test_invalid_inputs(self, *args):
        cls.kolkata = ZoneInfo('Asia/Kolkata')
  
      @classmethod
      def setup_class(cls):
          cls.field = serializers.DateTimeField()
        cls.kolkata = ZoneInfo('Asia/Kolkata')
  
      def assertUTC(self, tzinfo):
          """
          Check UTC for datetime.timezone, ZoneInfo, and pytz tzinfo instances.
          """
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