mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #34000 -- Fixed numberformat.format() crash on empty strings.
This commit is contained in:
committed by
Mariusz Felisiak
parent
ec13e801b8
commit
e911e0996f
@@ -172,3 +172,6 @@ class TestNumberFormat(SimpleTestCase):
|
||||
|
||||
price = EuroDecimal("1.23")
|
||||
self.assertEqual(nformat(price, ","), "€ 1,23")
|
||||
|
||||
def test_empty(self):
|
||||
self.assertEqual(nformat("", "."), "")
|
||||
|
||||
Reference in New Issue
Block a user