From 896b872375efb7c2d0c10ecb407f68c281770f34 Mon Sep 17 00:00:00 2001 From: Sergei Lavrov Date: Thu, 17 Oct 2019 22:01:11 +0300 Subject: [PATCH] Added test case causes exception in DecimalField deserialization --- tests/test_fields.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_fields.py b/tests/test_fields.py index 7c495cd63..1d302b730 100644 --- a/tests/test_fields.py +++ b/tests/test_fields.py @@ -1080,6 +1080,7 @@ class TestDecimalField(FieldValues): invalid_inputs = ( ('abc', ["A valid number is required."]), (Decimal('Nan'), ["A valid number is required."]), + (Decimal('Snan'), ["A valid number is required."]), (Decimal('Inf'), ["A valid number is required."]), ('12.345', ["Ensure that there are no more than 3 digits in total."]), (200000000000.0, ["Ensure that there are no more than 3 digits in total."]),