[issue18659] test_precision in test_format.py is not executed and has unused variable
Vajrasky Kok
report at bugs.python.org
Mon Aug 5 15:39:29 CEST 2013
Vajrasky Kok added the comment:
For the passers-by who want to help:
The "precision too big" exception is raised in Python/formatter_unicode.c line 1168 and 1002.
The "Too many decimal digits..." exception is raised in Python/formatter_unicode.c line 71.
So the question is whether it is beneficial to differentiate the exception message. If not, we can change the exception message or test whether the digit passes INT_MAX first before checking with sys.max_size. If yes, we need to add test case for sys.max_size and use _testcapi.INT_MAX for current unit test case.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18659>
_______________________________________
More information about the Python-bugs-list
mailing list