From d3ff351d37560cc63c4fb82b53e54b6224d5969a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Kul=C3=ADk?= Date: Thu, 5 Jun 2025 11:12:50 +0200 Subject: [PATCH] further improvements --- tests/test_fields.py | 1 + tox.ini | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/test_fields.py b/tests/test_fields.py index bfa4f24d4..bd20ba64d 100644 --- a/tests/test_fields.py +++ b/tests/test_fields.py @@ -1625,6 +1625,7 @@ 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 0adcee3a4..e9d8f9e37 100644 --- a/tox.ini +++ b/tox.ini @@ -17,6 +17,7 @@ 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