mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #34424 -- Fixed SelectDateWidget crash for inputs raising OverflowError.
This commit is contained in:
committed by
Mariusz Felisiak
parent
b4870e7196
commit
d22209cb42
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user