diff options
author | Kamil Turek <kamil.turek@hotmail.com> | 2022-09-16 21:43:12 +0200 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-09-17 10:02:55 +0200 |
commit | ae509f8f0804dea0eea89e27329014616c9d4cc0 (patch) | |
tree | 2b16a90aae0b0e3d094b4d3b1481647770c2401b /tests/validators | |
parent | c11336cd990e155371a5185cf3bd6942cad8d9da (diff) | |
download | django-ae509f8f0804dea0eea89e27329014616c9d4cc0.tar.gz |
Fixed #34014 -- Fixed DecimalValidator validating 0 in positive exponent scientific notation.
Thanks Shiplu Mokaddim for the report.
Diffstat (limited to 'tests/validators')
-rw-r--r-- | tests/validators/tests.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 *[ ( |