From a0fbdbd30e2b1d4e2adfbfbf283925d95f3e34f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Kul=C3=ADk?= Date: Thu, 5 Jun 2025 12:52:37 +0200 Subject: [PATCH] let's not skip the pytz test - it should always be executed when testing against Django 4 --- requirements/requirements-testing.txt | 1 + tests/test_fields.py | 1 - tox.ini | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/requirements/requirements-testing.txt b/requirements/requirements-testing.txt index 2b39316a0..b435c0f60 100644 --- a/requirements/requirements-testing.txt +++ b/requirements/requirements-testing.txt @@ -5,3 +5,4 @@ pytest-django>=4.5.2,<5.0 importlib-metadata<5.0 # temporary pin of attrs attrs==22.1.0 +pytz diff --git a/tests/test_fields.py b/tests/test_fields.py index bd20ba64d..bfa4f24d4 100644 --- a/tests/test_fields.py +++ b/tests/test_fields.py @@ -1625,7 +1625,6 @@ class TestCustomTimezoneForDateTimeField(TestCase): assert rendered_date == rendered_date_in_timezone -@pytest.mark.skipif(condition=pytz is None, reason="pytz is not available.") @pytest.mark.skipif( condition=django.VERSION >= (5,), reason="Django 5.0 has removed pytz; this test should eventually be able to get removed.", diff --git a/tox.ini b/tox.ini index e9d8f9e37..0adcee3a4 100644 --- a/tox.ini +++ b/tox.ini @@ -17,7 +17,6 @@ setenv = PYTHONWARNINGS=once deps = django42: Django>=4.2,<5.0 - django42: pytz django50: Django>=5.0,<5.1 django51: Django>=5.1,<5.2 django52: Django>=5.2,<6.0