          for input_value, expected_output in get_items(self.valid_inputs):
              assert self.field.run_validation(input_value) == expected_output, \
                  'input value: {}'.format(repr(input_value))
  
      def test_invalid_inputs(self):
          """
          Ensure that invalid values raise the expected validation error.
          """
          for input_value, expected_failure in get_items(self.invalid_inputs):
              with pytest.raises(serializers.ValidationError) as exc_info:
 
</s> remove     def test_valid_inputs(self):
 </s> add     def test_valid_inputs(self, *args): </s> remove     def test_outputs(self):
 </s> add     def test_outputs(self, *args): </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                 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
    def test_invalid_inputs(self, *args):
          for input_value, expected_output in get_items(self.valid_inputs):
              assert self.field.run_validation(input_value) == expected_output, \
                  'input value: {}'.format(repr(input_value))
  
    def test_invalid_inputs(self, *args):
          """
          Ensure that invalid values raise the expected validation error.
          """
          for input_value, expected_failure in get_items(self.invalid_inputs):
              with pytest.raises(serializers.ValidationError) as exc_info:
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