`test_too_many_digits_to_render` test fails with PyPy3.10 7.3.16
When running the test suite in 5.0.8 (also reproduced via tox -e pypy3
on a05187fce613a70a5e5c93c978d36497a10fcf1f):
======================================================================
ERROR: test_too_many_digits_to_render (template_tests.filter_tests.test_floatformat.FunctionTests) [<object object at 0x000055ed663acdd8>] (value='10000000000000000000000000000[...]0000000')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/pypy3.10/unittest/case.py", line 59, in testPartExecutor
yield
File "/usr/lib/pypy3.10/unittest/case.py", line 498, in subTest
yield
File "/tmp/portage/dev-python/django-5.0.8/work/Django-5.0.8/tests/template_tests/filter_tests/test_floatformat.py", line 153, in tes
t_too_many_digits_to_render
self.assertEqual(floatformat(value), value)
File "/tmp/portage/dev-python/django-5.0.8/work/Django-5.0.8/django/template/defaultfilters.py", line 156, in floatformat
d = Decimal(input_val)
File "/usr/lib/pypy3.10/_pydecimal.py", line 566, in __new__
self._int = str(int(intpart+fracpart))
ValueError: Exceeds the limit (4300) for integer string conversion: value has 1000001 digits
----------------------------------------------------------------------
Ran 16827 tests in 541.813s
FAILED (errors=1, skipped=1300, expected failures=5)
Change History
(5)
Cc: |
Sarah Boyce added
|
Component: |
Uncategorized → Template system
|
Triage Stage: |
Unreviewed → Accepted
|
Has patch: |
set
|
Owner: |
set to Mariusz Felisiak
|
Status: |
new → assigned
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Hello Michał Górny, thank you for this report.
Confirmed this is failing for PyPy in our scheduled tests actions (PyPy+SQLite and PyPy+Postgresql).
Issue introduced in c19465ad87e33b6122c886b97a202ad54cd43672.