We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bb909b commit 9e5262cCopy full SHA for 9e5262c
tests/test_fields.py
@@ -9,6 +9,7 @@
9
from unittest.mock import patch
10
11
import pytest
12
+from django import VERSION as DJANGO_VERSION
13
14
try:
15
import pytz
@@ -672,6 +673,7 @@ def test_valid_inputs(self, *args):
672
673
assert self.field.run_validation(input_value) == expected_output, \
674
'input value: {}'.format(repr(input_value))
675
676
+ @pytest.mark.xfail(DJANGO_VERSION >= (5, 0), reason="Django v5 drops support for pytz")
677
def test_invalid_inputs(self, *args):
678
"""
679
Ensure that invalid values raise the expected validation error.
0 commit comments