mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #29006 -- Fixed DecimalField.clean() crash on sNaN values.
This commit is contained in:
committed by
Tim Graham
parent
1c95737ebe
commit
c886f3dee3
@@ -51,6 +51,7 @@ class DecimalFieldTest(FormFieldAssertionsMixin, SimpleTestCase):
|
||||
f = DecimalField(max_digits=4, decimal_places=2)
|
||||
values = (
|
||||
'-NaN', 'NaN', '+NaN',
|
||||
'-sNaN', 'sNaN', '+sNaN',
|
||||
'-Inf', 'Inf', '+Inf',
|
||||
'-Infinity', 'Infinity', '+Infinity',
|
||||
'a', 'łąść', '1.0a', '--0.12',
|
||||
|
||||
Reference in New Issue
Block a user