Skip to content

Commit 9e5262c

Browse files
authored
xfail test_invalid_inputs() if Django >= v5.0
1 parent 0bb909b commit 9e5262c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_fields.py

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from unittest.mock import patch
1010

1111
import pytest
12+
from django import VERSION as DJANGO_VERSION
1213

1314
try:
1415
import pytz
@@ -672,6 +673,7 @@ def test_valid_inputs(self, *args):
672673
assert self.field.run_validation(input_value) == expected_output, \
673674
'input value: {}'.format(repr(input_value))
674675

676+
@pytest.mark.xfail(DJANGO_VERSION >= (5, 0), reason="Django v5 drops support for pytz")
675677
def test_invalid_inputs(self, *args):
676678
"""
677679
Ensure that invalid values raise the expected validation error.

0 commit comments

Comments
 (0)