1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Fixed #34424 -- Fixed SelectDateWidget crash for inputs raising OverflowError.

This commit is contained in:
Jure Slak
2023-03-20 22:42:18 +01:00
committed by Mariusz Felisiak
parent b4870e7196
commit d22209cb42
3 changed files with 16 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
import sys
from datetime import date
from django.forms import DateField, Form, SelectDateWidget
@@ -610,6 +611,7 @@ class SelectDateWidgetTest(WidgetTest):
((None, "12", "1"), None),
(("2000", None, "1"), None),
(("2000", "12", None), None),
((str(sys.maxsize + 1), "12", "1"), "0-0-0"),
]
for values, expected in tests:
with self.subTest(values=values):