  
          assert rendered_date == rendered_date_in_timezone
  
  
  class TestNaiveDayLightSavingTimeTimeZoneDateTimeField(FieldValues):
      """
      Invalid values for `DateTimeField` with datetime in DST shift (non-existing or ambiguous) and timezone with DST.
      Timezone America/New_York has DST shift from 2017-03-12T02:00:00 to 2017-03-12T03:00:00 and
       from 2017-11-05T02:00:00 to 2017-11-05T01:00:00 in 2017.
      """
 
</s> remove     def test_invalid_inputs(self):
 </s> add     def test_invalid_inputs(self, *args): </s> remove     def test_valid_inputs(self):
 </s> add     def test_valid_inputs(self, *args): </s> remove         dt = datetime.datetime(2018, 2, 8, 14, 15, 16, tzinfo=pytz.utc)
 </s> add         dt = datetime.datetime(2018, 2, 8, 14, 15, 16, tzinfo=ZoneInfo("UTC")) </s> remove     def test_outputs(self):
 </s> add     def test_outputs(self, *args):
@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):
  
          assert rendered_date == rendered_date_in_timezone
  
  
@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):
      """
      Invalid values for `DateTimeField` with datetime in DST shift (non-existing or ambiguous) and timezone with DST.
      Timezone America/New_York has DST shift from 2017-03-12T02:00:00 to 2017-03-12T03:00:00 and
       from 2017-11-05T02:00:00 to 2017-11-05T01:00:00 in 2017.
      """
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