let's not skip the pytz test - it should always be executed when testing against Django 4

This commit is contained in:
Jakub Kulík 2025-06-05 12:52:37 +02:00
parent d3ff351d37
commit a0fbdbd30e
3 changed files with 1 additions and 2 deletions

View File

@ -5,3 +5,4 @@ pytest-django>=4.5.2,<5.0
importlib-metadata<5.0 importlib-metadata<5.0
# temporary pin of attrs # temporary pin of attrs
attrs==22.1.0 attrs==22.1.0
pytz

View File

@ -1625,7 +1625,6 @@ class TestCustomTimezoneForDateTimeField(TestCase):
assert rendered_date == rendered_date_in_timezone assert rendered_date == rendered_date_in_timezone
@pytest.mark.skipif(condition=pytz is None, reason="pytz is not available.")
@pytest.mark.skipif( @pytest.mark.skipif(
condition=django.VERSION >= (5,), condition=django.VERSION >= (5,),
reason="Django 5.0 has removed pytz; this test should eventually be able to get removed.", reason="Django 5.0 has removed pytz; this test should eventually be able to get removed.",

View File

@ -17,7 +17,6 @@ setenv =
PYTHONWARNINGS=once PYTHONWARNINGS=once
deps = deps =
django42: Django>=4.2,<5.0 django42: Django>=4.2,<5.0
django42: pytz
django50: Django>=5.0,<5.1 django50: Django>=5.0,<5.1
django51: Django>=5.1,<5.2 django51: Django>=5.1,<5.2
django52: Django>=5.2,<6.0 django52: Django>=5.2,<6.0