summaryrefslogtreecommitdiff
path: root/tests/humanize_tests
diff options
context:
space:
mode:
authorKasyap Pentamaraju <vpentamaraju@webmd.net>2025-11-07 10:31:53 +0530
committerJacob Walls <jacobtylerwalls@gmail.com>2025-11-10 14:45:48 -0500
commitfffa64abc3870989d62659453cb302857c539956 (patch)
treeef18645bcf2a23bab31b4179603a7a5dbd84d7ab /tests/humanize_tests
parente78420c2b8ef62acb6b7a37b71e3aa6833d630fb (diff)
Fixed #36715 -- Handled non-finite Decimals in intcomma filter.
Diffstat (limited to 'tests/humanize_tests')
-rw-r--r--tests/humanize_tests/tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/humanize_tests/tests.py b/tests/humanize_tests/tests.py
index b9f1e58ef7..7c2863d3c4 100644
--- a/tests/humanize_tests/tests.py
+++ b/tests/humanize_tests/tests.py
@@ -153,6 +153,9 @@ class HumanizeTests(SimpleTestCase):
"-1234567.1234567",
Decimal("1234567.1234567"),
Decimal("-1234567.1234567"),
+ Decimal("Infinity"),
+ Decimal("-Infinity"),
+ Decimal("NaN"),
None,
"1234567",
"-1234567",
@@ -193,6 +196,9 @@ class HumanizeTests(SimpleTestCase):
"-1,234,567.1234567",
"1,234,567.1234567",
"-1,234,567.1234567",
+ "Infinity",
+ "-Infinity",
+ "NaN",
None,
"1,234,567",
"-1,234,567",