mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-06 21:33:34 +03:00
let's not skip the pytz test - it should always be executed when testing against Django 4
This commit is contained in:
parent
d3ff351d37
commit
a0fbdbd30e
|
@ -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
|
||||||
|
|
|
@ -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.",
|
||||||
|
|
1
tox.ini
1
tox.ini
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user