From ae509f8f0804dea0eea89e27329014616c9d4cc0 Mon Sep 17 00:00:00 2001 From: Kamil Turek Date: Fri, 16 Sep 2022 21:43:12 +0200 Subject: Fixed #34014 -- Fixed DecimalValidator validating 0 in positive exponent scientific notation. Thanks Shiplu Mokaddim for the report. --- tests/validators/tests.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/validators/tests.py b/tests/validators/tests.py index f9ffdfd605..02bee30ac1 100644 --- a/tests/validators/tests.py +++ b/tests/validators/tests.py @@ -548,6 +548,7 @@ TEST_DATA = [ Decimal("70E-6"), ValidationError, ), + (DecimalValidator(max_digits=2, decimal_places=1), Decimal("0E+1"), None), # 'Enter a number.' errors *[ ( -- cgit v1.3