#35661: `test_too_many_digits_to_render` test fails with PyPy3.10 7.3.16
------------------------------+-----------------------------------------
     Reporter:  Michał Górny  |                     Type:  Bug
       Status:  new           |                Component:  Uncategorized
      Version:  5.0           |                 Severity:  Normal
     Keywords:                |             Triage Stage:  Unreviewed
    Has patch:  0             |      Needs documentation:  0
  Needs tests:  0             |  Patch needs improvement:  0
Easy pickings:  0             |                    UI/UX:  0
------------------------------+-----------------------------------------
 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)
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35661>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701912d149ec1-348aac33-b914-4f8b-86ff-1e5674d2593a-000000%40eu-central-1.amazonses.com.

Reply via email to